Importing reports created with the VS Report Designer
Should you need to import your existing reports created with the Visual Studio Report Designer to Overview supported format, follow the approaches outlined below:
Import reports created with VS Report Designer using Standalone Designer
Default constructor is required and due to XML format restrictions, custom code like properties, methods, and instantiated data objects will not be serialized along with the settings of the report.
In general, Telerik Reports are Telerik.Reporting.Report objects which can be serialized in TRDX files, or compressed TRDP files. The XML definition has a schema version that is updated in case of API changes in the released reporting functionality. It is important to use a version of Standalone Report Designer that matches the version of Telerik Reporting assemblies used to create the.NET report definition. For more information, please refer to XML Report Definition (XML Schema Versioning section). This guarantees that you are using the same version of the Telerik Reporting engine to create and process reports.
- (Optional) If the target report depends on external assemblies for event handlers, data sources, user functions, or custom aggregates, first you have to reference those assemblies in the configuration file. For more information see: Extending Report Designer
- Open the Report Designer and click on Open Report...
- In the Open dialog window, select .NET Report Library from the file type combobox. The assembly(.DLL) file of the report library, when built, should be selected here. For example:
CSharp.ReportLibrary.dll
- Navigate to your existing.NET report library and click Open. The Import Report Wizard is started.
- In the Select Reports to Import step, you will see the reflected reports from your report library.
- Select the reports you would like to import by checking the corresponding checkboxes right next to the reports and click Next.
- In the Output Settings step, you can specify the output location for the imported reports, their names, or a different location if you have more than one report.
- Click Import. Once the import is done, you are presented with the Import Summary step, which shows the result of the import and presents an import log. There is an option to open the imported reports in the standalone report designer once you click on Finish.
As of Q3 2024 (18.2.24.806), both the Standalone Report Designer and the Standalone Report Designer for .NET serialize report and item event handlers in the declarative report definitions during the import process. However, the source code of the event handlers is not embedded in the report definitions. This code resides in the original assembly from which the declarative report definition is imported. The code will be executed when the event handler is invoked by the Reporting engine. To load the assembly that contains and executes the code in the event handlers, the Report Designer needs to be extended, including the assembly that contains the event handlers in the Report Designer configuration file.
Package the CLR report object manually
The report packaging is achieved with dedicated ReportPackager. For detailed instructions, see Report Packaging
Serialize the CLR report object manually (legacy)
The XML serialization is achieved through the dedicated ReportXmlSerializer. For detailed instructions, see Serializing Report Definition in XML.