vcl-dxreport-dot-tdxreport-38c7d6bf.md
Allows you to modify the report download target in the Report Viewer dialog or prevent users from downloading a report.
property OnExport: TdxReportExportEvent read; write;
Handle the OnBrowserFileDownload event to execute custom code in response to a report download operation, modify the preview download target, replace the built-in Save As dialog, or prevent the operation depending on specific conditions in your application.
The OnBrowserFileDownload event occurs every time a user attempts to export a report in the Report Viewer dialog (in any available format). If the OnBrowserFileDownload event is unhandled, all export commands display the Save As dialog.
The following parameters are available within an OnBrowserFileDownload event handler:
ASenderProvides access to the TdxReport component that raised the OnBrowserFileDownload event.AFileName
Specifies the full absolute or relative path to the report download target.
You can assign a path to the target file to this parameter.
ACancel
Specifies if the download operation is canceled.
Assign True to this parameter within an OnExport event handler to prevent users from downloading a report file or implement a custom report download operation.
Refer to the TdxReportExportEvent procedural type description for detailed information on all available options.
See Also
TdxReport.OnPrintPreview Event