Skip to content

NikolaevaIrina/xaf-how-to-create-and-setup-an-xtrareport-report-for-exporting-to-a-stream-in-a-non-xaf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XAF - How to create and setup 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

About

Access XAF report stored in the database and populate it with data in a non-XAF application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 63.4%
  • HTML 35.6%
  • Batchfile 1.0%