Click or drag to resize

ReportQueue Class

X#
Manage Report Editor reporting activities, as well as the appearance of the Report Editor window.
Inheritance Hierarchy
Object
  ReportQueue

Namespace:  VO
Assembly:  VOReportClasses (in VOReportClasses.dll) Version: 2.24 GA
Syntax
 CLASS ReportQueue
Request Example View Source

The ReportQueue type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleReportQueue
Construct a report queue.
Top
Properties
  NameDescription
Public propertyActiveFile
The report definition file the Report Editor server was just using. This information can be used within an AppWindow:ReportNotification() method.
Public propertyEventType
One of the following constants representing an event:
          Constant					Description
          REPORTCLOSEEVENT			Current report has been closed.
          REPORTCOMPLETEERROREVENT	A print or export task has aborted.
          REPORTCOMPLETEEVENT		A print or export task has completed.
          REPORTFILESAVEEVENT		A report definition has been closed.
          REPORTOPENEVENT			Requested report has been opened.
          REPORTSERVERCLOSEEVENT	Report Editor has been closed.
          REPORTVIEWCLOSEEVENT		A report preview has been closed (but the report itself remains open).
        
It should be used only in any AppWindow:ReportNotification() method you add to your window class that owns this ReportQueue object.
Public propertyFilename
The name of the .RET file that defines the report. This access is unlikely to be used within the function that opened the report — as the file name string should already be local to the function. It would be useful if one method opens a report and another method needs to use that open file. Note that this accesses the name of the report that is open when the next command method gets around to executing on the Report Editor, as opposed to the ReportQueue:ActiveFile which might be an earlier report now being processed by the Report Editor.
Public propertyOpenIndex
Public propertyOpenNames
Public propertyOrigin
A point defining where the top left corner of the Report Editor window is shown, in canvas coordinates. The Report Editor is shown from this point downward. This is in contrast to the coordinate system used by X# applications, which consider their window's origin at the bottom-left corner and show windows in an upward direction.
Public propertyowner
The window that owns the ReportQueue object. This access allows code using a ReportQueue to call methods of the owner (ultimately derived from AppWindow).
Public propertyReportServer
The Report Editor server currently in use by this ReportQueue. The value is set in the ReportQueue:Init() method.
Public propertySize
A dimension representing the current size of the Report Editor window, in canvas coordinates.
Top
Methods
  NameDescription
Public methodCode exampleClose
Close a report.
Public methodCloseAll
Close all reports.
Public methodCode exampleConnectToDB
Connect to an ODBC data source.
Public methodDataUpdate
Handle DataUpdateEvent, if one occurs. Provide this event handler in your derived ReportQueue class if you require special handling of events.
Important! You should neither attempt to call nor provide alternative implementations to this method. Instead, you can provide extra handling of events in your derived version of AppWindow:ReportNotification().
Public methodCode exampleEdit
Load a report into the Report Editor for editing.
Public methodHide
Hide the Report Editor window and icon so that they are not visible.
Public methodCode exampleNEW
Create a new report definition in the Report Editor for editing.
Public methodCode exampleOpen
Open a report.
Public methodCode examplePreview
Cause a report to be previewed on screen.
Public methodCode examplePrint
Print a report to the Report Editor's selected printer.
Public methodReportExit
Exit the Report Editor.
Public methodCode exampleSaveToFile
Save a report to the given file name.
Public methodCode exampleSetPapersize
Set the paper size for the report.
Public methodCode exampleSetPrinterOrientation
Set the printer orientation for the report.
Public methodCode exampleSetReportQuery
Set the query to be used for the report.
Public methodCode exampleSetSQLFile
Load an SQL query file as the active SQL query for the report.
Public methodCode exampleSetSQLText
Set a text string as the active SQL query for the report.
Public methodShow
Minimize or maximize the Report Editor window.
Top
Remarks
The ReportQueue class allows an application to create, edit, print, preview, and save reports using report definition files (*.RET) created and formatted using the Report Editor.
See Also

Reference