FlexViewerPane > Binding FlexReport with FlexViewerPane |
To bind the FlexReport with FlexViewerPane, you need to load the report first. Once the report definition has been created and loaded in C1FlexReport, you can add the C1FlexViewer control to the XAML designer and bind the report to the control using DocumentSource property of C1FlexViewerPane class.
To bind the FlexReport with FlexViewerPane, use the following code and set the name of C1FlexViewerPane control as ViewerPane:
Dim rep As New C1FlexReport() 'load report definition rep.Load("..\..\Products Report.flxr", "Products Report") 'preview the report ViewerPane.DocumentSource = rep
C1FlexReport rep = new C1FlexReport(); //load report definition rep.Load(@"..\..\Products Report.flxr", "Products Report"); //preview the report ViewerPane.DocumentSource=rep;