Back to Devexpress

dxPrintComponent(TComponent,Boolean,Boolean,string,string) Method

vcl-dxpscore-dot-dxprintcomponent-x28-5745d565-x29.md

latest2.8 KB
Original Source

dxPrintComponent(TComponent,Boolean,Boolean,string,string) Method

Prints a specified component.

Declaration

delphi
function dxPrintComponent(AComponent: TComponent; APrintPreview: Boolean = True; APrintDialog: Boolean = False; const AReportTitle: string = ''; const APrintTitle: string = ''): Boolean;

Parameters

NameType
AComponentTComponent
APrintPreviewBoolean
APrintDialogBoolean
AReportTitlestring
APrintTitlestring

Returns

Type
Boolean

Remarks

This function temporarily creates a component printer and a report link for the component passed as the AComponent parameter. It then prints the component using this link and report settings passed as other parameters. The function returns True , if printing succeeds. Otherwise, False is returned.

The APrintPreview parameter determines whether to activate the Print Preview dialog before printing. Set this parameter to False to suppress this dialog.

The APrintDialog parameter determines whether to activate the Print dialog before printing. Set this parameter to True to display this dialog.

The AReportTitle parameter specifies the name of a print job to be started for printing.

The APrintTitle parameter specifies the report’s title.

See Also

TCustomdxComponentPrinter.Print

TCustomdxComponentPrinter.PrintEx

TCustomdxComponentPrinter.PrintPage

TCustomdxComponentPrinter.PrintPages

TCustomdxComponentPrinter.PrintPagesEx

dxPSCore Unit