dxPrintComponent(TComponent,Boolean,Boolean,string,string) Method
Prints a specified component.
Declaration
function dxPrintComponent(AComponent: TComponent; APrintPreview: Boolean = True; APrintDialog: Boolean = False; const AReportTitle: string = ''; const APrintTitle: string = ''): Boolean;
Parameters
Name | Type |
---|---|
AComponent | TComponent |
APrintPreview | Boolean |
APrintDialog | Boolean |
AReportTitle | string |
APrintTitle | string |
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.