Skip to Content
0
Dec 07, 2018 at 03:51 PM

All the Columns are not displayed in the excel report through crystal reports JAVA SDK.

93 Views Last edit Dec 27, 2018 at 03:34 PM 2 rev

When generating the crystal report in excel format through JAVA SDK , all the columns are not getting displayed . There are total 64 columns in the report but only 53 columns are displayed in the excel , it is working fine in PDF and CSV format . All the columns are displayed when the report is generated from crystal reports tool. Below is the SDK code used to generate the report.

ReportClientDocument reportClientDocument = new ReportClientDocument(); reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);

reportPath = request.getParameter("report_path");

reportClientDocument.open(reportPath, OpenReportOptions._openAsReadOnly); byteArrayInputStream = (ByteArrayInputStream) reportClientDocument .getPrintOutputController().export(ReportExportFormat.recordToMSExcel);

If needed any details let us know.