ReportQueue.Preview Method
|
|
Cause a report to be previewed on screen.
Namespace:
VO
Assembly:
VOReportClasses (in VOReportClasses.dll) Version: 2.24 GA
Syntax VIRTUAL METHOD Preview(
aParams,
cPreviewTitle,
iMC
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual Preview(
Usual aParams = default,
Usual cPreviewTitle = default,
Usual iMC = default
) Request Example
View SourceParameters
- 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. - cPreviewTitle (Optional)
- Type: Usual
String representing the title for the Preview window. If omitted, no title will appear in the window title bar. - iMC (Optional)
- Type: Usual
Return Value
Type:
Usual
Remarks
The status of the method is sent to the owner window's status bar, displaying "ServerName has completed report."
The parameters are transmitted to the Report Editor before the Preview() method, and would be used by subsequent Print() methods. You can prefer to leave the decision whether to print the report with the person previewing, rather than have the program request a print.
Examples
The following example previews a file on the screen before printing it:
1oRQ:ConnectToDB(...)
2oRQ:Open("sales.ret")
3oRQ:Preview({"Spain","1993"})
4oRQ:Print()
See Also