| Working with FlexReport > Developing FlexReport for Desktop > Load FlexReport at Design Time |
In this scenario, an application generates reports using a fixed set of report definitions that are built into the application. This type of application does not rely on any external report definition files, and end-users can not modify these reports.
The main advantage of this type of application is that you don't need to distribute the report definition file, and you can be sure that no one can modify the report format. The disadvantage is that to make any modifications to the report, you must recompile the application.
If you want to use a report definition that you already have, without any modifications, follow these steps:
) above the component to open the C1FlexReport Tasks menu and choose the Load Report option.)
Private Sub btnProductsReport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnProductsReport.Click c1FlexViewer1.DocumentSource =rptProducts End Sub
private void btnProductsReport_Click(object sender, System.EventArgs e) { c1FlexViewer1.DocumentSource =rptProducts; }
![]() |
Note that rptProducts is the name of the C1FlexReport component that contains the report selected by the user and c1FlexViewer1 is the name of the FlexViewer control. |