Jump to content
Changes to the Jaspersoft community edition download ×

JRTextExporter problem


Recommended Posts

I am working with JasperReport in my web application (generating text files) but in some case with a big data (until 2000 rows) my report was error.

file .txt was created but that's file .txt was blank.

could anybody help me.


this's my script :


File destFile = new File(reportFile.getParent(),jasperPrint.getName() +".txt");

JRTextExporter exporter = new JRTextExporter(); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);

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

Integer pageHeight=new Integer(jasperPrint.getPageHeight()); exporter.setParameter(JRTextExporterParameter.PAGE_WIDTH, Integer.valueOf("175")); exporter.setParameter(JRTextExporterParameter.PAGE_HEIGHT,pageHeight); exporter.setParameter(JRTextExporterParameter.CHARACTER_HEIGHT, new Integer(14));


Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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...