Skip to Content
avatar image
Former Member

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

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers