Working with FlexReport > Exporting Reports > Render FlexReport using Html Filter Class |
FlexReport allows you to render a report to HTML format using HtmlFilter class. The HtmlFilter class renders the report into HTML streams or files.
To render a FlexReport to HTML format, use the following code. This example uses sample created in FlexReport Quick Start.
Dim f As New HtmlFilter() f.FileName = "..\..\ProductsReport.html" rep.RenderToFilter(f) System.Diagnostics.Process.Start(f.OutputFiles(0))
HtmlFilter f = new HtmlFilter(); f.FileName = @"..\..\ProductsReport.html"; rep.RenderToFilter(f); System.Diagnostics.Process.Start(f.OutputFiles[0]);