Jump to content
We've recently updated our Privacy Statement, available here ×

JRDocxExporter - DOC Output File taking too long to Open


muhammad.sarwar

Recommended Posts

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 code

ArrayList<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 responses

MS

 

Link to comment
Share on other sites

  • Replies 1
  • 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...