| Report and Document Viewer (FlexViewer Control) > Binding FlexReport with FlexViewer |
To render a report, you need to bind the report to the FlexViewer control. Once the report definition has been created, a data source defined, and loaded into the C1FlexReport component, you can render the report to the printer, to the preview control - FlexViewer, or export to different file formats.
To preview the report in the FlexViewer control, the steps are as follows:
'load report definition c1FlexReport1.Load("..\..\Products Report.flxr", "Products Report") 'preview the report c1FlexViewer1.DocumentSource = c1FlexReport1
//load report definition c1FlexReport1.Load(@"..\..\Products Report.flxr", "Products Report"); //preview the report c1FlexViewer1.DocumentSource = c1FlexReport1;
