This example illustrates the process of creating a report in code in a WPF application.
The following steps are essential to create a report layout:
- Create a report class instance and bind it to data.
- Add bands to the report.
- Add controls to the created bands and bind them to data.
After the report layout is complete, you can generate the report document and display it in the Print Preview.
Starting with v.17.2, the report uses binding expressions to bind controls to data. You can switch to the legacy binding mode by setting the UserDesignerOptions.DataBindingMode property to Bindings at the application start.
- App.xaml.cs (VB: App.xaml.vb)
- MainWindow.xaml.cs (VB: MainWindow.xaml.vb)
- WPF Reporting
- Create a Report in Code
- Bind Reports to Data
- Bind Report Controls to Data with Binding Expressions
- Reporting for WPF - How to Implement a Report Storage
- WPF Report Designer - How to register a custom page in the Report Wizard
- Report Designer for WPF - How to enable end-users to load custom assemblies to the Entity Framework context
- Report Designer for WPF - How to switch the Report Wizard to a single-query version
(you will be redirected to DevExpress.com to submit your response)