Hi,
I am trying to export a ReportClientDocument object as an excel using RAS SDK of BOE4. In spite of setting excel format options, using default values, setting heading text for the DBField, the headers are not seen in the output excel. The JAVA documentation for the properties is just expanding the method name with out any information on how to set the values. Can some one help me by giving the code to export the document object to an excel with headers. I need it for "data only" format.
The below is the code that I am using:
IExportOptions opts = new ExportOptions();
opts.setExportFormatType(ReportExportFormat.recordToMSExcel2007);
IDataOnlyExcelExportFormatOptions format = new DataOnlyExcelExportFormatOptions();
format.setExportPageHeaderAndFooter(true);
format.setSimplifyPageHeaders(true);
opts.setFormatOptions(format);
FileInputStream is = (FileInputStream) reportClientDocument.getPrintOutputController().export(opts);
The option to set constant column width is working but not the rest. I tried with ReportExportFormat.recordToMSExcel also.
Thanks very much for the help.
Regards,
Rishi Vas.