ReportViewer Class

The ReportViewer class lets the user preview a report.

Syntax

class ReportViewer extends ReportOutput

Run On

Client

Methods

  Method Description
Gg946790.pubmethod(en-us,AX.60).gif abort (Inherited from ReportOutput.)
Gg946790.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg946790.pubmethod(en-us,AX.60).gif close
Gg946790.pubmethod(en-us,AX.60).gif description (Inherited from ReportOutput.)
Gg946790.pubmethod(en-us,AX.60).gif dialogAndPrint (Inherited from ReportOutput.)
Gg946790.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg946790.pubmethod(en-us,AX.60).gif firstPage
Gg946790.pubmethod(en-us,AX.60).gif getCopyNo (Inherited from ReportOutput.)
Gg946790.pubmethod(en-us,AX.60).gif getDeclineOverwrite (Inherited from ReportOutput.)
Gg946790.pubmethod(en-us,AX.60).gif getLastCopyNo (Inherited from ReportOutput.)
Gg946790.pubmethod(en-us,AX.60).gif getLastPageNo (Inherited from ReportOutput.)
Gg946790.pubmethod(en-us,AX.60).gif getPageNo (Inherited from ReportOutput.)
Gg946790.pubmethod(en-us,AX.60).gif getTempFileName (Inherited from ReportOutput.)
Gg946790.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg946790.pubmethod(en-us,AX.60).gif gotoPage
Gg946790.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg946790.pubmethod(en-us,AX.60).gif jobStatus (Inherited from ReportOutput.)
Gg946790.pubmethod(en-us,AX.60).gif lastPage
Gg946790.pubmethod(en-us,AX.60).gif new Initializes a new instance of the Object class. (Overrides the new Method.)
Gg946790.pubmethod(en-us,AX.60).gif nextPage
Gg946790.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.)
Gg946790.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.)
Gg946790.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg946790.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg946790.pubmethod(en-us,AX.60).gif pause
Gg946790.pubmethod(en-us,AX.60).gif prevPage
Gg946790.pubmethod(en-us,AX.60).gif print (Inherited from ReportOutput.)
Gg946790.pubmethod(en-us,AX.60).gif printAscii (Inherited from ReportOutput.)
Gg946790.pubmethod(en-us,AX.60).gif printHTML (Inherited from ReportOutput.)
Gg946790.pubmethod(en-us,AX.60).gif printJobSettings (Inherited from ReportOutput.)
Gg946790.pubmethod(en-us,AX.60).gif printPDF (Inherited from ReportOutput.)
Gg946790.pubmethod(en-us,AX.60).gif printRTF (Inherited from ReportOutput.)
Gg946790.pubmethod(en-us,AX.60).gif printTextUTF8 Prints a report to a UTF-8 format. (Inherited from ReportOutput.)
Gg946790.pubmethod(en-us,AX.60).gif printToTarget (Inherited from ReportOutput.)
Gg946790.pubmethod(en-us,AX.60).gif setAborted
Gg946790.pubmethod(en-us,AX.60).gif setCompleted
Gg946790.pubmethod(en-us,AX.60).gif setNumberOfPages (Overrides the setNumberOfPages Method.)
Gg946790.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg946790.pubmethod(en-us,AX.60).gif showPage
Gg946790.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg946790.pubmethod(en-us,AX.60).gif type (Inherited from ReportOutput.)
Gg946790.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.)
Gg946790.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg946790.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)

Top

Remarks

ReportViewer objects can exist only on the client, because a report preview can occur only on a client.

Examples

The following code will print the job descriptions and the page numbers of jobs that are inserted in the printArchive on the current date, and it will show page 1 in the report viewer.

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

Inheritance Hierarchy

Object Class
  ReportOutput Class
    ReportViewer Class

See Also

ReportOutput Class