Click or drag to resize

ReportQueue.Open Method

X#
Open a report.

Namespace:  VO
Assembly:  VOReportClasses (in VOReportClasses.dll) Version: 2.24 GA
Syntax
 VIRTUAL METHOD Open(
	cReportName
) AS USUAL CLIPPER
Request Example View Source

Parameters

cReportName (Optional)
Type: Usual
An existing Report Editor report definition file. If no extension is given, .RET is appended to the file name specified.

Return Value

Type: Usual
Remarks
Open() must be called before calling ReportQueue command methods like Print() or Preview(). Before opening a second report, we recommend you close the first, in order to save memory, although it is not required. Open() displays its status in the owner window's status bar.
Tip Tip
The Report Editor requires an active database connection. Before opening a report, you must create a data source for the report database and connect to it using ReportQueue:ConnectToDB().
Examples
This example opens a report definition:
X#
1LOCAL od AS OBJECT
2LOCAL ReportFile AS STRING
3od := OpenDialog{SELF,"*.ret"}
4od:Show()
5ReportFile := od:FileName
6od:Destroy()
7oRQ:ConnectToDB(...)
8oRQ:Open(ReportFile)
See Also