Back to Devexpress

How to: Use the Custom Report Preview Form

expressappframework-113603-shape-export-print-data-reports-task-based-help-how-to-use-the-custom-report-preview-form.md

latest1.2 KB
Original Source

How to: Use the Custom Report Preview Form

  • Aug 20, 2024
  • 2 minutes to read

This example demonstrates how to show a custom Report Preview form in a WinForms XAF application that uses the Reports V2 Module.

  1. Create a new custom form (CustomPreviewForm in this example) in the WinForms application project (MySolution.Win). Design this form as described in the following help topic: Create a Custom Print Preview.

  2. Add the ShowReport method to CustomPreviewForm:

  3. Create the following Controller to display a report preview in the CustomPreviewForm form in the WinForms application project (MySolution.Win).