Jump to content
Changes to the Jaspersoft community edition download ×

Text export


Recommended Posts


I am trying to export my report to plain text format using the JRTextExporter...one thing I did not understand is that the page width of the text does not change to landscape even I specified a value more than the portrait size in the PAGE_WIDTH parameter of the exporter.


why is this or am I going wrong somewhere....


this is my export logic:


String fileName = new String("FEDFileFormat" +

lDateTimeFormatter.format(new Date()) + ".txt");

JRTextExporter jrtxt = new JRTextExporter();

File destFile = new File(fileName);


jrtxt.setParameter(JRExporterParameter.JASPER_PRINT, jrPrint);

jrtxt.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());

jrtxt.setParameter(JRTextExporterParameter.CHARACTER_WIDTH, new Integer(10));

jrtxt.setParameter(JRTextExporterParameter.CHARACTER_HEIGHT, new Integer(10));

jrtxt.setParameter(JRTextExporterParameter.PAGE_WIDTH, new Integer(845));


Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...