ExportFormats
Why is the data in CSV export different from the generated report output?
For the intended use of exported delimited text files, only the table data is normally useful. To support the exporting of report table data, a CSV formatter is supplied in the inetsoft.report.io package. Only table data is exported to the text file. If there is more than one table on the report, they are exported to the file one by one.
In other words, the CSV export only exports the original tabular data present in the report and does not export any formatted data. Therefore, the csv export of your report will reflect the original table data and not the formatted table in the report output.
RTF Programmatic export
There are 2 types of RTF export - the most accurate mechanism for RTF export would be to use Builder.RTF_LAYOUT. The following lines illustrate how to export to RTF with the suggested mechanism:
FileOutputStream os = new FileOutputStream(new File("report.rtf"));
Builder builder = Builder.getBuilder(Builder.RTF_LAYOUT, os, ".");
builder.write(report);
os.close();
For other export formats, please see the inetsoft.report.io.Builder class in the InetSoft API documentation.
The image on my report is not exported with the specified dimensions on HTML export. The image has the correct dimensions in other report formats. What can I do?
To ensure that the image size is rendered as specified on the report, you need to set the property "html.image.scale=true". Otherwise, the images will be rendered in their original dimensions in the HTML export format.
i.e. html.image.scale=true
--
StephenWebster - 10 Dec 2007