Skip to main content

TBasedxReportLink.PrintEx(TdxPageNumbers,Integer,Boolean) Method

Prints report pages.

Declaration

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

Parameters

Name Type
APageNums TdxPageNumbers
ACopies Integer
ACollate Boolean

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