Skip to Content

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

Dec 13, 2016 at 08:34 PM


avatar image
Former Member

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

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

String connectString;
 try { 
     connectString = con.getMetaData().getURL();
 catch (SQLException e) {
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);

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