If you're heavily invested in C1Report, you can upgrade or convert C1Reports to FlexReport with little time investment. C1Report will be moving into maintenance mode in March 2016, which means we'll continue supporting it, but will no longer develop new features for the control. Start migrating your files now, and be sure to contact Support if you run into issues.
If you have multiple reports, use our quick Batch XML to FLXR Converter sample. Just download, run, and go!
Go to File > Open and select the C1Report report definition (.xml) that you want to upgrade. You'll see the following dialog box:
The report definition is saved as type .flxr. Your report definition is now converted from C1Report's .xml to C1FlexReport's .flxr.
Add C1FlexReport component to the Toolbox:
Add C1FlexViewer control to the Toolbox:
Drop C1FlexReport on the Form. The following dlls with the same version as the version of C1FlexReport should get added to the references:
If these references do not have the same version, you need to add them manually.
Drop C1FlexViewer control on the Form. The following dlls with the same version as the version of C1FlexViewer should get added to the references:
If these references do not have the same version, you need to add them manually.
Add the following dlls to the references:
To use map and super-label custom fields, add following dlls to the references:
* C1.Win.FlexReport.CustomFields.4
* C1.WPF.Maps.4
* C1.WPF.4
Rename C1Report component to C1FlexReport component. In code, you can change the name of the component as follows:
~~~
Dim report As New C1Report()
'To
Dim report As New C1FlexReport()
~~~
* [C#](http://helpcentral.componentone.com/nethelp/FlexReport/UpgradingC1ReporttoC1FlexReport.html#TabContent-CS)
~~~
C1Report report = new C1Report();
//To
C1FlexReport report = new C1FlexReport();
~~~
In order to bind C1FlexReport with C1FlexViewer, following code will have to be changed as follows:
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 C1FlexViewer control only. The C1FlexViewer control is not compatible with C1PrintPreviewControl or C1RibbonPreviewControl.
Submit a support ticket if you run into issues.