muhammad.sarwar Posted July 9, 2014 Share Posted July 9, 2014 I am using Jasper 5.1 to generate reports in Excel, PDF and Word. Excela and PDF are perfectly ok but the Word file takes too long to open. There are hardly 150 pages and file size is around 1.5 mb.There are no problems with generation of word file but the issue is with opening the file. It takes around 2-5 minutes to open.Below is a snapshot of the codeArrayList<AedbMasterDataBean> records=this.getRecords();JRBeanCollectionDataSource beanColDataSource = new JRBeanCollectionDataSource(records);JasperPrint print = JasperFillManager.fillReport(jasperMasterReport, parameters, beanColDataSource);JRDocxExporter docxExporter = new JRDocxExporter();docxExporter.setParameter(JRExporterParameter.JASPER_PRINT, print);docxExporter.setParameter(JRExporterParameter.OUTPUT_STREAM, outputStream); docxExporter.exportReport();Awaiting your responsesMS Link to comment Share on other sites More sharing options...
muhammad.sarwar Posted July 13, 2014 Author Share Posted July 13, 2014 Does anyone has any clue about the above issue 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