Skip to Content
0

ReportClientDoc.getPrintOutputController.export(ReportExportFormat.PDF) large dataset

Dec 13, 2016 at 08:34 PM

79

avatar image

This is my program trying to generate large pdf file which has 15000+ pages.


ReportClientDocument clientDoc = new ReportClientDocument();
clientDoc.setReportAppServer(ReportClientDocument.inprocConnectionString);
clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
Connection con = DatabaseManager.getConnection("SYBASE");

String connectString;
 try { 
     connectString = con.getMetaData().getURL();
 }
 catch (SQLException e) {
  e.printStacktrace();
} 
String driverName = "com.sybase.jdbc4.jdbc.SybDriver";
String serverType = "Sybase Server";
String databaseDll = "crdb_p2ssyb10.dll"; 
//setting data source information 
//Setting Parameters

InputStream byteArrayInputStream = (InputStream) clientDoc.getPrintOutputController() .export(ReportExportFormat.PDF);

File tempFile = new File(fileLocation);
FileOutputStream output = new FileOutputStream(tempFile, false);
			IOUtils.copy(byteArrayInputStream, output);
			
clientDoc.close();
			output.close();
			byteArrayInputStream.close();


InputStream byteArrayInputStream = (InputStream) clientDoc.getPrintOutputController() .export(ReportExportFormat.PDF);

To execute export statement taking 3 to 4 minutes on local machine but on jboss environment taking more than 15 minutes.

is there any configuration to improve the export performance?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers