FlexReport allows you to export reports to different files and distribute them electronically. It supports the following export formats and respective export filters for exporting the report:
Format | Description |
---|---|
RTF (*.rtf) | RtfFilter export filter is used to export the reports into RTF streams or files. |
Microsoft Excel (*.xlsx/*.xls) | XlsFilter export filter is used to export the reports into XLSX/XLS streams or files. |
TIFF (*.tiff), BMP, PNG, JPEG, GIF images | TiffFilter, BmpFilter, PngFilter, JpegFilter, and GifFilter export filters are used to export the reports into different image format filles or streams. |
PDF (*.pdf) | PdfFilter export filter is used to export the reports into PDF streams or files. |
HTML(*.html) | HtmlFilter export filter is used to export the reports into HTML streams or files. |
You can export the report created in Quick Start section to XLSX format using the following steps.
Similarly, you can export your reports to RTF, HTML, and PDF formats.
The above code can be used for exporting a report to an image file but exporting a multi-paged report to an image file only exports the first page of the report at a time as the image format filters do not directly support a multiple paged report in a single file. However, it is possible to generate multiple image files corresponding to each page of a report in a ZIP file. The following code uses one of the image format filter class, JpegFilter, to export the multi-paged report to JPEG format and creates a single ZIP file of the exported images.