Share via


ReportViewer Class

Definition

The ReportViewer class lets the user preview a report.

public ref class ReportViewer : Dynamics::AX::Application::ReportOutput
[Microsoft.Dynamics.Ax.Xpp.KernelClass]
[Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnly]
public class ReportViewer : Dynamics.AX.Application.ReportOutput
[<Microsoft.Dynamics.Ax.Xpp.KernelClass>]
[<Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnly>]
type ReportViewer = class
    inherit ReportOutput
Public Class ReportViewer
Inherits ReportOutput
Inheritance
Microsoft.Dynamics.AX.KernelInterop.ProxyBase
ReportViewer
Attributes
KernelClassAttribute Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnlyAttribute

Remarks

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

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); 
    } 
}

Constructors

ReportViewer()
ReportViewer(IntPtr)
ReportViewer(PrintJobHeader, PrintJobPages, Object[])
ReportViewer(PrintJobHeader, PrintJobPages)
ReportViewer(PrintJobHeader)

Fields

__k_ReportViewerId
kernelClass (Inherited from XppObjectBase)

Methods

__shouldCallNew(Type)
abort() (Inherited from ReportOutput)
addXppProxyReference(Type, Object) (Inherited from XppObjectBase)
Call(String, Object[], Type[], Object[]) (Inherited from XppObjectBase)
cancelTimeOut(Int32) (Inherited from XppObjectBase)
close()
createKernelClass(Object[], Type[], Object[]) (Inherited from XppObjectBase)
description() (Inherited from ReportOutput)
description(String) (Inherited from ReportOutput)
dialogAndPrint() (Inherited from ReportOutput)
equal(XppObjectBase) (Inherited from XppObjectBase)
finalize() (Inherited from XppObjectBase)
firstPage()
getCopyNo() (Inherited from ReportOutput)
getDeclineOverwrite() (Inherited from ReportOutput)
GetIntPtr() (Inherited from XppObjectBase)
GetKernelInstanceUniqueId() (Inherited from XppObjectBase)
getLastCopyNo() (Inherited from ReportOutput)
getLastPageNo() (Inherited from ReportOutput)
getPageNo() (Inherited from ReportOutput)
getTempFileName(String) (Inherited from ReportOutput)
getTimeOutTimerHandle() (Inherited from XppObjectBase)
getXppProxyReference(Type) (Inherited from XppObjectBase)
gotoPage(Int32)
handle()
IsManagedValid() (Inherited from XppObjectBase)
jobStatus() (Inherited from ReportOutput)
kernelhandle()
KernelInstanceDisposed() (Inherited from XppObjectBase)
lastPage()
MakeReflectionCall(String, Object[]) (Inherited from XppObjectBase)
newmethod() (Inherited from XppObjectBase)
newmethod(PrintJobHeader, PrintJobPages, Object[])
newmethod(PrintJobHeader, PrintJobPages)
newmethod(PrintJobHeader)

Initializes a new instance of the Object class.

nextPage()
notify() (Inherited from XppObjectBase)
notifyAll() (Inherited from XppObjectBase)
objectOnServer()
Obsolete.
(Inherited from XppObjectBase)
pause()
prevPage()
print() (Inherited from ReportOutput)
printAscii(String) (Inherited from ReportOutput)
printHTML(String) (Inherited from ReportOutput)
printJobSettings() (Inherited from ReportOutput)
printPDF(String, Boolean) (Inherited from ReportOutput)
printPDF(String) (Inherited from ReportOutput)
printRTF(String) (Inherited from ReportOutput)
printTextUTF8(String)

Prints a report to a UTF-8 format.

(Inherited from ReportOutput)
printToTarget() (Inherited from ReportOutput)
setAborted()
setCompleted()
setNumberOfPages(Int32, Boolean)
setNumberOfPages(Int32)
setTimeOut(String, Int32, Boolean)
Obsolete.
(Inherited from XppObjectBase)
setTimeOut(String, Int32)
Obsolete.
(Inherited from XppObjectBase)
showPage(Int32)
type() (Inherited from ReportOutput)
type(String) (Inherited from ReportOutput)
usageCount() (Inherited from XppObjectBase)
VerifyKernelClass() (Inherited from XppObjectBase)
wait() (Inherited from XppObjectBase)
Xml() (Inherited from XppObjectBase)
Xml(Int32) (Inherited from XppObjectBase)

Applies to