Working with FlexReport > Exporting Reports > Export FlexReport using RtfFilter Class |
FlexReport allows you to export a report to RTF format using RtfFilter class. The RtfFilter class exports the report into RTF streams or files.
To export a FlexReport to RTF format, use the following code. The example uses sample created in FlexReport Quick Start.
Dim f As New RtfFilter() f.FileName = "..\..\ProductsReport.rtf" rep.RenderToFilter(f) System.Diagnostics.Process.Start(f.OutputFiles(0))
RtfFilter f = new RtfFilter(); f.FileName = @"..\..\ProductsReport.rtf"; rep.RenderToFilter(f); System.Diagnostics.Process.Start(f.OutputFiles[0]);
You can also use the following properties of RtfFilter class:
Properties | Description |
---|---|
OpenXML | Used to export the file in OpenXML format. |
Paged | Used to preserve the page layout of the original report. |
ShapesWord2007Compatible | Used to indicate the Word 2007 shapes format compatibility in a report to be saved to DOCX format. |