Back to Devexpress

TCustomdxComponentPrinter.Print(Boolean,PdxPrintDlgData,TBasedxReportLink) Method

vcl-dxpscore-dot-tcustomdxcomponentprinter-dot-print-x28-system-dot-boolean-dxprndlg-dot-pdxprintdlgdata-dxpscore-dot-tbasedxreportlink-x29.md

latest2.3 KB
Original Source

TCustomdxComponentPrinter.Print(Boolean,PdxPrintDlgData,TBasedxReportLink) Method

Prints a report on the default printer.

Declaration

delphi
function Print(AShowDialog: Boolean; APrintDialogData: PdxPrintDlgData; AReportLink: TBasedxReportLink = nil): Boolean;

Parameters

NameType
AShowDialogBoolean
APrintDialogDataPdxPrintDlgData
AReportLinkTBasedxReportLink

Returns

Type
Boolean

Remarks

The AShowDialog parameter determines whether to activate a print dialog before printing. If AShowDialog is True , the Print dialog is active.

The APrintDialogData parameter is the pointer to a structure that describes properties of a print dialog.

The AReportLink parameter specifies the link that stores a report to print. It allows users to print not only the report of the current active link, but any other from the list of available links. If nil is passed as the AReportLink parameter, then the current report link will be printed out.

Note

TdxPrintDlgData is used internally to define print attributes. In most cases, it’s easier to use the PrintEx, PrintPage, PrintPages and PrintPagesEx methods instead of Print.

See Also

dxPSCore.dxPrintComponent

TCustomdxComponentPrinter Class

TCustomdxComponentPrinter Members

dxPSCore Unit