Working with FlexReport > Exporting Reports > Render FlexReport using PdfFilter Class |
FlexReport allows you to render a report to PDF format using PdfFilter class. The PdfFilter class renders the report into PDF streams or files.
To render a FlexReport in PDF format, use the following code. This example uses sample created in FlexReport Quick Start.
Dim f As New PdfFilter() f.FileName = "..\..\ProductsReport.pdf" rep.RenderToFilter(f) System.Diagnostics.Process.Start(f.OutputFiles(0))
PdfFilter f = new PdfFilter(); f.FileName = @"..\..\ProductsReport.pdf"; rep.RenderToFilter(f); System.Diagnostics.Process.Start(f.OutputFiles[0]);
You can also use the following properties of PdfFilter class:
Properties | Description |
---|---|
EmbedFonts | Used to embed font information in PDF document. |
PdfACompatible | Used to generate PDF/A compatible document. |
PdfSecurityOptions | Used to specify who can use the Pdf document and what actions are allowed on it. |
UseCompression | Used for PDF document compression. |
UseOutlines | Used to include an outline tree. |