Skip to content

Demonstrates how to create various report storage types for the End-User Report Designer.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/reporting-winforms-custom-report-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reporting for WinForms - How to Implement a Custom Report Storage

This example demonstrates how to implement a report storage to store and retrieve report layouts. The project contains code for the following custom storages:

  • DataSetReportStorage — stores reports in an XML file.
  • XpoReportStorage — stores reports in an XPCollection.
  • ZipReportStorage — stores reports in a zip archive.

Uncomment the appropriate code in the Program.cs (VB: Program.vb) file to select a storage type.

A storage is a class that inherits the ReportStorageExtension class and implements methods to store and retrieve reports serialized in XML format.

Note that the default report serialization mechanism does not support data sources and user-defined types, such as data objects, data sets, XPO data sources, and custom report parameters. You should implement custom XML serialization logic to store these objects along with the reports. Review the following examples:

When you run the project, a window appears that allows you to select a report, and open the End-User Designer to edit the report, or open the report preview.

Select Report

If you click Design, the End-User Report Designer is invoked. It allows you to open, edit and save the report. End-User Report Designer displays the following warning on an attempt to load a report:

Ensure Safe Loading of Reports

For more information, review the following help topic: Ensure Safe Loading of Reports (WinForms).

The following image shows the invoked End-User Report Designer with Ribbon UI:

End-User Report Designer

When you click Open or Save in the Report Designer, the Storage Editor window appears. It allows you to select a report or specify a new report name.

Storage Editor

Files to Review

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

Demonstrates how to create various report storage types for the End-User Report Designer.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •