Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8927

Re: Exporting ReportClientDocument as an excel or PDF

$
0
0

Hi Shreyans,

 

Thanks for the inputs. Dont mind my delayed reply as we have been trying different configurations in different environments for making sure that we are not missing any time out properties.

 

Unfortunately, the change in configuration did not help us in overcoming the issue with session expiry. Our observation is that we are running into this session expiry issue with in fraction of seconds of making the request. So time out should not be an issue here.

 

Could you please throw some light on the possibilities of receiving this error for the situation where the session is killed due to any properties that are not initialized with a proper value. To be specific, what are the properties, either on the server configuration or the export options, which when not initialized properly could throw this exception, when trying to export an excel using ReportClientDocument's PrintController object.

 

The below is the code we are using to export the report as an excel:

 

  IExportOptions exportOptions = new ExportOptions();

                                                  exportOptions.setExportFormatType(ReportExportFormat.MSExcel);

                                                  ExcelExportFormatOptions excelFormatOptions = new ExcelExportFormatOptions();

                                                  excelFormatOptions.setConvertDatesToStrings(false);

                                                  excelFormatOptions.setConstantColWidth(100);

                                                  excelFormatOptions.setUseConstantColWidth(true);

   exportOptions.setFormatOptions(excelFormatOptions);

  reportClientDocument.getPrintOutputController().export(exportOptions);


Viewing all articles
Browse latest Browse all 8927

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>