ReportQueue.SetReportQuery Method
|
|
Set the query to be used for the report.
Namespace:
VO
Assembly:
VOReportClasses (in VOReportClasses.dll) Version: 2.24 GA
Syntax VIRTUAL METHOD SetReportQuery(
sQueryName
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual SetReportQuery(
Usual sQueryName = default
) Request Example
View SourceParameters
- sQueryName (Optional)
- Type: Usual
Name of the query to use for the report.
Return Value
Type:
Usual
Remarks
For reports that contain multiple queries, this method can be used to select which query is used when running a report. To view what queries are available, go into the Report Editor and select the Query, Set Report Query menu item. If that menu item is disabled, then only the default query (QUERY1) is defined. Otherwise a Set Report Query dialog box will appear and the available queries will be listed.
The report query should be set before calling Print() or Preview().
Examples1oRQ:SetReportQuery("QUERY2")
See Also