FlexReport for WinForms Overview > Upgrading C1Report to FlexReport |
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.
Dim report As New C1Report() 'To Dim report As New C1FlexReport()
C1Report report = new C1Report(); //To C1FlexReport report = new C1FlexReport();
Dim c1r As C1.C1Report.C1Report = New C1Report() c1r.Load(filepath, reportname) C1PrintPreviewControl1.Document = clr 'To Dim report As New C1FlexReport() report.Load(filepath, reportname) C1FlexViewer1.DocumentSource = report
C1.C1Report.C1Report c1r = new C1Report(); c1r.Load(filepath, reportname); c1PrintPreviewControl1.Document=clr; //To C1FlexReport report = new C1FlexReport(); report.Load(filepath, reportname); c1FlexViewer1.DocumentSource = report;
Note that FlexReport can be previewed at runtime by using FlexViewer control only. The FlexViewer control is not compatible with C1PrintPreviewControl or C1RibbonPreviewControl. |