Quantcast
Viewing all articles
Browse latest Browse all 7205

How to implement custom XML serialization of a report that is bound to a dataset

This example demonstrates the capability to serialize a report to XML along with its data source.

In this example, a report that is bound to a dataset can be saved to a file, and then restored along with its data source.

To do this, override the ReportStorageExtension class, and use the XtraReport.SaveLayoutToXml() method. And, you can use an opposite LoadLayoutFromXml() method, to de-serialize an XML report from a file or stream.

In addition, it is required to register a custom ReportDesignExtension, which implements the data source serialization functionality.

See also:
How to serialize an XPO data source
How to serialize a report to XML with an untyped DataSet as a data source


Viewing all articles
Browse latest Browse all 7205

Trending Articles