The ParametersRequestSubmit event in DevExpress XtraReports is a void method. When you need to fetch data asynchronously (e.g., from a Web API or a heavy DB query), the UI thread does not wait for your task to complete. This results in:
- Stale Data: The report displays the results from the previous submission.
- Empty Reports: The document is created before the
DataSourceis populated.
Instead of relying on the internal report generation trigger, we manually handle the report lifecycle:
- Cancel any pending operations.