Crystal Report to FastReport

I imported one of many Crystal Reports I have into FastReport by opening in designer after adding the plugin. Here are the initial issues I have:

1. Dataset is not imported. The CR reports use an .xsd file. I found ways to handle this with an XML schema and XML data, but when I add those data sources it does not relink the data fields that were imported. Any way to automate this or workaround it?

2. On-demand subreports are blank. I have quite a few reports with on-demand subreports and they are always blank in the designer. This is a big deal as I basically will have to recreate each subreport manually.

3. Does not import formulas. The CR reports use display formulas on many fields, as well as custom formulas and formula fields.

4. Custom function are not imported. I have many custom functions that are used throughout the CR reports. They are all missing.

5. Groups are not imported. A single group band is created, but not linked to a datasource and adding a datasource does not relink it. If the CR report has multiple groups, only one group is imported.

Basically, any one of these issues means mostly, if not entirely, a rewrite to convert to FR. Any suggestions on resolve these issues?

Comments

  • stgstg
    edited 12:02PM

    Hello!

    I am sending you the correct download link: https://www.fast-report.com/public_download/FastReport.RPTImportPlugin.zip

    The main points:

    1. You need SAP Crystal Reports for Visual Studio (SP30) runtime engine for .NET framework (its 64-bit version), no other will do;

    2. The designer is built under .NET Framework 4.7.2 and the plugin must be built under the same. Nothing in the settings of the project does not need to change, it already builds for 4.7.2.

    3. Build the plugin for Any CPU. You also do not need to change anything in settings.

    4. Add the FastReport DLLs to the plugin project strictly from the folder in which the designer lies.

    5. It is also better to put the plug-in DLL in the folder with the designer.

    6. The designer after adding a plug-in in the settings, be sure to restart. If it is started from Visual Studio, restart it too.


    Possible problems:


    1. The designer doesn't start after adding a plugin. The plugin is assembled incorrectly, you have to delete the line with the plugin in FastReport.config, assemble the plugin correctly.

    2. The report designer starts, but Crystal Reports does not show in the list of filters in the window of report opening. See steps 2 - 6 above.

    SAP Crystal Reports for Visual Studio (SP30) runtime engine for .NET framework crashes during installation with various errors. Run with administrative privileges.

    4. Plugin is added, but crashes with "Can't load report" error or something like "Initializer threw an exception" when opening file. See point 1, only works with this library. Or in point 3 to build for x64.


    How can I quickly complete the migration of this report manually after importing it:

    XSD / XML DataSet and field remapping: bind the data to the code (DataSet ds = new DataSet(); ds.ReadXmlSchema(...); ds.ReadXml(...); report.RegisterData(ds, ...);) and make sure that the TableDataSource name in the <Dictionary> (or in the .frx XML markup) exactly matches the table name in DataBand.DataSource and in [Table.Column].

    Crystal formulas and custom functions: rewrite the formulas in the C# style of report expressions/scripts (or register your own C# functions via `RegisteredObjects.AddFunction`).

    Groups and Subreports: Check GroupHeader.Condition (by binding a group field) and move on-demand subreports to child ReportPage pages or detail links (HyperlinkKind.DetailReport).

This discussion has been closed.