Partilhar via


ReportOutput Class

Definition

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

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

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.

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

Constructors

ReportOutput()
ReportOutput(IntPtr)
ReportOutput(PrintJobHeader, PrintJobPages)
ReportOutput(PrintJobHeader)

Fields

__k_ReportOutputId
kernelClass (Inherited from XppObjectBase)

Methods

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

Initializes a new instance of the Object class.

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

Prints a report to a UTF-8 format.

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

Applies to