ReportOutput Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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) |