Support for C1Report in FlexReport > Convert C1Report Report Definition to C1FlexReport Report Definition |
The reports created using C1Report are fully compatible with C1FlexReport. The following are the two simple ways to upgrade or convert your existing C1Report report definition (.xml) to C1FlexReport report definition (.flxr):
The report definition is saved as type .flxr. Your report definition is now converted from C1Report's .xml to C1FlexReport's .flxr. In our case, we opened TelephoneBillReport.xml in FlexReportDesigner application and saved it as TelephoneBillReport.flxr.
XAML |
Copy Code
|
---|---|
<my:C1DocumentViewer Grid.Row="1" Name="c1DocumentViewer1" xmlns:my="clr-namespace:C1.WPF.C1Report;assembly=C1.WPF.C1Report" /> |
XAML |
Copy Code
|
---|---|
<my:C1FlexViewerPane Grid.Row="1" Name="ViewerPane" xmlns:my="clr-namespace:C1.WPF.FlexViewer;assembly=C1.WPF.FlexViewer.4" /> |
Dim c1r As New C1Report() 'To Dim rep As New C1FlexReport()
C1Report c1r = new C1Report(); //To C1FlexReport rep = new C1FlexReport();
clr.Load("..\..\TelephoneBillReport.xml", "TelephoneBillReport") 'To rep.Load("..\..\TelephoneBillReport.flxr", "TelephoneBillReport")
clr.Load(@"..\..\TelephoneBillReport.xml","TelephoneBillReport"); //To rep.Load(@"..\..\TelephoneBillReport.flxr","TelephoneBillReport");
C1DocumentViewer1.Document = c1r.C1Document.FixedDocumentSequence
'To
ViewerPane.DocumentSource = rep
C1DocumentViewer1.Document = c1r.C1Document.FixedDocumentSequence;
//To
ViewerPane.DocumentSource = rep;