Back to Devexpress

How to: Use XAF Reports in a non-XAF Application

expressappframework-114515-shape-export-print-data-reports-task-based-help-how-to-use-xaf-reports-in-a-non-xaf-application.md

latest1.5 KB
Original Source

How to: Use XAF Reports in a non-XAF Application

  • Oct 15, 2025
  • 2 minutes to read

This topic describes how to create, set up, and export XAF reports in a non-XAF application. Since XAF stores reports in the database, and XAF reports use Object Space to retrieve data, you should connect to the XAF database and create an Object Space in a non-XAF application.

View Example: XAF - How to create and setup an XtraReport report for exporting to a Stream in a non-XAF application

  1. Implement the IObjectSpaceProviderFactory interface.

  2. Create the ServiceCollection to register XAF services and your CustomObjectSpaceProviderFactory service (the Program.cs file).

  3. Register the required types in the Types Info Subsystem.

  4. Use the IReportExportService service to load and prepare a report.

See Also

Invoke the Report Preview from Code

How to: Print a Report Without Displaying a Preview