Store Report Layouts and Documents
- 2 minutes to read
The topics in this section describe how to store and distribute report layouts and published report documents.
Store Report Layouts
The following topics explain the main principles of report serialization and demonstrate how to save, store, and load report layouts:
- Store Report Layouts
- XML Serialization
- CodeDOM Serialization
- Save Report Layouts
- Load Report Layouts
- Custom Report Storage
Tip
See the following topics to learn about other important aspects of storing and distributing report layouts:
Store Report Documents
The following topics contain basic information about publishing reports and storing created report documents:
Tip
See the following topics to learn about publishing report documents:
Tasks and Solutions
How to store reports in a database
Implement a report storage based on your application type and store report layouts in a data table. Review the following help topic for more information: Custom Report Storage.
How to move reports from one application to another
A general recommendation is to store all reports in a separate class library project that can be referenced from applications.
If your project includes reports as classes, do the following in the Visual Studio IDE:
- Save the report layout in an XML report definition file (.REPX). Review the following help topic for more information: Save Report Layouts.
- Create a new (blank) report.
- Open (Import) the report definition file using the newly created blank report. Review the following help topic for more information: Load Report Layouts.
- Save the report class file.
In code, you can use the XtraReport.LoadLayout method to load a report from the .REPX file.
You can also use a file or database report storage shared between applications. Review the following help topic for more information: Custom Report Storage.