Click or drag to resize

ReportQueue.Print Method

X#
Print a report to the Report Editor's selected printer.

Namespace:  VO
Assembly:  VOReportClasses (in VOReportClasses.dll) Version: 2.24 GA
Syntax
 VIRTUAL METHOD Print(
	aParams,
	uRange,
	nCopies
) AS USUAL CLIPPER
Request Example View Source

Parameters

aParams (Optional)
Type: Usual
An array of report parameters, as understood by the Report Editor report file. These report parameters can be inserted by the Report Editor into the report text, and/or can be used as selection criteria in the report query. Use commas to default any unused parameters or to re-use previously provided parameters.
uRange (Optional)
Type: Usual
nCopies (Optional)
Type: Usual

Return Value

Type: Usual
Remarks
The report parameters are transmitted to the Report Editor before the print command, and is used by subsequent Print() methods.
Examples
This example prints three different reports from the same report definition:
X#
1// Print all
2oRQ:ConnectToDB(...)
3oRQ:Open{"sales.ret"}
4// Default to 1992 again
5oRQ:Print({"Spain","1992"})
6oRQ:Print({"Ireland"})
7// Second & third pages
8oRQ:Print({,"1993"},Range{2,3})
9oRQ:Close()
See Also