Quantcast
Viewing all articles
Browse latest Browse all 7205

Report Storage for the End-User Report Designer


The following example demonstrates how to implement a report storage to persist report definitions in a database or in any other custom location. This may be useful when providing end-users with the capability to create and customize reports using XtraReports End-User Designer, if it is necessary to have a common target for saving and sharing all reports.

The default report serialization mechanism does not support the serialization of a report's datasource. The following examples illustrate how you can provide a custom XML serialization logic for a report's datasource as well as its custom parameters.

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

- How to serialize an XPO data source;

- How to serialize parameters of custom types.

Example Comments

Added By: at: 10/8/2012 1:48:21 PM    

There is a slight error in the example if you are using a different XPO provider. The call to create the XpoReportStorage is prior to setting the default DataLayer. This results in the default MS Access DataLayer being used in the XpoReportStorage parameter. Changing the statement (as indicated below) will result in the expected behavior:

string conn = SQLiteConnectionProvider.GetConnectionString(@"c:\temp\ReportStorage.sqlite");
XpoDefault.DataLayer = XpoDefault.GetDataLayer(conn, AutoCreateOption.DatabaseAndSchema);
reportStorage = new XpoReportStorage(new UnitOfWork());


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>