Back to Devexpress

TdxCustomDashboardControl.OnExport Event

vcl-dxdashboard-dot-control-dot-tdxcustomdashboardcontrol-366d6979.md

latest2.3 KB
Original Source

TdxCustomDashboardControl.OnExport Event

Allows you to modify the dashboard file download target or prevent users from downloading dashboard content.

Declaration

delphi
property OnExport: TdxDashboardControlExportEvent read; write;

Remarks

Handle the OnExport event to run custom code when dashboard content is downloaded. Change the download target, replace the built-in Save As dialog, or cancel the operation based on application-specific conditions.

Event Occurrence

The OnExport event occurs every time a user attempts to export dashboard content using the Export To button within the Dashboard UI (in any available format).

If the OnExport event is unhandled, a click on the Export button in the Export To dialog displays the standard Save As dialog.

Event Parameters

The following parameters are available within an OnBrowserFileDownload event handler:

ASenderProvides access to the TdxDashboardControl component that raised the OnExport event.AFileName

Specifies the full absolute or relative path to the dashboard download target.

You can assign a path to the target file to this parameter.

ADownload

Specifies if the download operation is canceled.

Assign True to this parameter within an OnBrowserFileDownload event handler to prevent users from downloading dashboard content as a file or implement a custom dashboard download operation.

Refer to the TdxDashboardControlEvent procedural type description for information about parameters accessible in an OnExport event handler.

See Also

TdxReport.OnExport Event

TdxCustomDashboardControl Class

TdxCustomDashboardControl Members

dxDashboard.Control Unit