Back to Devexpress

TBasedxReportLink.PrintEx(TdxPageNumbers,Integer,Boolean) Method

vcl-dxpscore-dot-tbasedxreportlink-dot-printex-x28-dxpsglbl-dot-tdxpagenumbers-system-dot-integer-system-dot-boolean-x29.md

latest2.4 KB
Original Source

TBasedxReportLink.PrintEx(TdxPageNumbers,Integer,Boolean) Method

Prints report pages.

Declaration

delphi
procedure PrintEx(APageNums: TdxPageNumbers; ACopies: Integer; ACollate: Boolean);

Parameters

NameType
APageNumsTdxPageNumbers
ACopiesInteger
ACollateBoolean

Remarks

Call this procedure to print the odd, even, or all report pages depending on a value passed as the APageNums parameter:

|

align=”center” colspan=”3” !

| | --- | |

Value

|

Description

| |

colspan=”3” |

| |

pnAll

|

The PrintEx procedure prints all report pages.

| |

pnEven

|

The procedure prints only the even report pages.

| |

pnOdd

|

The procedure prints only the odd report pages.

|

To specify the required number of printed copies and the flag indicating if these copies are collated, use the ACopies and ACollate parameters, respectively.

If a component printer contains the report link, the PrintEx procedure sets it as the current link and calls the component printer’s PrintEx procedure, passing the APageNums, ACopies, and ACollate values as parameters. If the ComponentPrinter property is set to nil (i.e., the report link does not belong to a component printer), calling the PrintEx procedure has no effect.

If you need to print only a single page or a specific list of report pages, call the PrintPages or PrintPagesEx procedure instead.

See Also

TBasedxReportLink.Print

TBasedxReportLink Class

TBasedxReportLink Members

dxPSCore Unit