Share via


ReportOutput Class

The ReportOutput class handles the output of a report to a printer or file.

Syntax

class ReportOutput extends Object

Run On

Called

Methods

  Method Description
Gg916846.pubmethod(en-us,AX.60).gif abort
Gg916846.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg916846.pubmethod(en-us,AX.60).gif description
Gg916846.pubmethod(en-us,AX.60).gif dialogAndPrint
Gg916846.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg916846.pubmethod(en-us,AX.60).gif getCopyNo
Gg916846.pubmethod(en-us,AX.60).gif getDeclineOverwrite
Gg916846.pubmethod(en-us,AX.60).gif getLastCopyNo
Gg916846.pubmethod(en-us,AX.60).gif getLastPageNo
Gg916846.pubmethod(en-us,AX.60).gif getPageNo
Gg916846.pubmethod(en-us,AX.60).gif getTempFileName
Gg916846.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg916846.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg916846.pubmethod(en-us,AX.60).gif jobStatus
Gg916846.pubmethod(en-us,AX.60).gif new Initializes a new instance of the Object class. (Overrides the new Method.)
Gg916846.pubmethod(en-us,AX.60).gif notify Releases the hold on an object that has called the wait method on this object. (Inherited from Object.)
Gg916846.pubmethod(en-us,AX.60).gif notifyAll Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.)
Gg916846.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg916846.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg916846.pubmethod(en-us,AX.60).gif print
Gg916846.pubmethod(en-us,AX.60).gif printAscii
Gg916846.pubmethod(en-us,AX.60).gif printHTML
Gg916846.pubmethod(en-us,AX.60).gif printJobSettings
Gg916846.pubmethod(en-us,AX.60).gif printPDF
Gg916846.pubmethod(en-us,AX.60).gif printRTF
Gg916846.pubmethod(en-us,AX.60).gif printTextUTF8 Prints a report to a UTF-8 format.
Gg916846.pubmethod(en-us,AX.60).gif printToTarget
Gg916846.pubmethod(en-us,AX.60).gif setNumberOfPages
Gg916846.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg916846.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg916846.pubmethod(en-us,AX.60).gif type
Gg916846.pubmethod(en-us,AX.60).gif usageCount Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.)
Gg916846.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg916846.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)

Top

Remarks

This class serves as the base class for the ReportViewer class, which handles preview of reports, and for the ReportOutputUser class, which handles output of reports to a user-defined target in a user-defined format.

In general, if a report is printed to the printer, the print method creates a ReportOutput object and calls its print method. If the call printJobSettings::outputToClient(TRUE) has been made, a ReportViewer object is created instead.

The call to the print method prints the report on a printer that is set up on the client, because a ReportViewer object can only exist on the client, not on the server.

Examples

The following example prints the job descriptions and page numbers of jobs that have been inserted into the printArchive table on the current date, and prints page 1 on the default printer.

static void aaaReportOutputExample(args a) 
{ 
    printJobHeader printJobHeader; 
    printJobPages printJobPages; 
    int myrecId; 
    reportViewer reportViewer; 
  
    while select printJobHeader where printJobHeader.createdDateTime >=
        str2datetime("01/01/2011 12:00:00", 123) 
    { 
        myrecId = printJobHeader.recId; 
        print printJobHeader.jobDescription; 
  
        while select printJobPages  
            where printJobPages.pagesHeaderRecId == myRecId 
        print printJobPages.PageNo; 
  
        reportViewer = new reportOutput(printJobHeader); 
        reportViewer.print(); 
    } 
}

Inheritance Hierarchy

Object Class
  ReportOutput Class
    ReportOutputUser Class
    ReportPrinter Class
    ReportViewer Class

See Also

ReportViewer Class

ReportOutputUser Class