wyu_nengsih Posted March 23, 2007 Share Posted March 23, 2007 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));exporter.exportReport(); Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now