Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 3.2 KB

File metadata and controls

40 lines (26 loc) · 3.2 KB

XAF - How to create and set up an XtraReport report for exporting to a Stream in a non-XAF application

This example illustrates how to access an XAF report stored in the database and populate it with data in a non-XAF application.

Since XAF stores reports in the database and XAF reports use Object Spaces to retrieve data from the database, it is necessary to connect to the XAF database and create an Object Space to use XAF reports in a non-XAF application.

Implementation Details

  1. Create a custom class that implements the IObjectSpaceProviderFactory interface. Please refer to the CustomObjectSpaceProviderFactory.cs file for implementation details. This class is used as a service to create IObjectSpace objects on demand.
  2. Create the ServiceCollection to register required XAF services and your CustomObjectSpaceProviderFactory service.
  3. Use the IReportExportService service to load and prepare a report.

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)