vcl-dxpscore-dot-dxprintcomponent-x28-5745d565-x29.md
Prints a specified component.
function dxPrintComponent(AComponent: TComponent; APrintPreview: Boolean = True; APrintDialog: Boolean = False; const AReportTitle: string = ''; const APrintTitle: string = ''): Boolean;
| Name | Type |
|---|---|
| AComponent | TComponent |
| APrintPreview | Boolean |
| APrintDialog | Boolean |
| AReportTitle | string |
| APrintTitle | string |
| Type |
|---|
| Boolean |
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