Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TCustomdxComponentPrinter.DoBeforeExportToPDF(TBasedxReportLink,string,TdxPSPDFReportExportOptions) Method

Fires the OnBeforeExportToPDF event.

#Declaration

Delphi
function DoBeforeExportToPDF(AReportLink: TBasedxReportLink; const AFileName: string; AOptions: TdxPSPDFReportExportOptions): Boolean; dynamic;

#Parameters

Name Type
AReportLink TBasedxReportLink
AFileName string
AOptions TdxPSPDFReportExportOptions

#Returns

Type
Boolean

#Remarks

This function is called before a report generated by the link passed as the AReportLink parameter is exported to a PDF file. The AFileName and AOptions parameters correspond to the ExportToPDF method parameters, which specify the name and location of the resulting PDF file and initial option values for the PDF Export Options dialog, respectively.

TCustomdxComponentPrinter descendants can override the DoBeforeExportToPDF function to perform specific actions before/after executing the OnBeforeExportToPDF event handler.

See Also