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 ReportOutputUser class implements a user-defined target for report formatting.
public ref class ReportOutputUser : Dynamics::AX::Application::ReportOutput
[Microsoft.Dynamics.Ax.Xpp.KernelClass]
[Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnly]
public class ReportOutputUser : Dynamics.AX.Application.ReportOutput
[<Microsoft.Dynamics.Ax.Xpp.KernelClass>]
[<Microsoft.Dynamics.BusinessPlatform.SharedTypes.InternalUseOnly>]
type ReportOutputUser = class
inherit ReportOutput
Public Class ReportOutputUser
Inherits ReportOutput
By default, Finance and Operations prints reports to a screen, printer, file, or email address. The following API items support a user-defined target:
ReportOutputUserType system enumeration
ViewerClass value for the PrintMedium system enumeration
ClassFactory::createViewer method
When a report is run, the print method creates a reportOutputUser object if the target is PrintMedium::Viewer class. This object will be created by calling the createViewer method and giving reportOutputUserType as one of the arguments. The report will then be printed by calling methods on the object: startReport, startPage, startSection, writeField, and so on. In general, if the target is, for example, a printer, the reportRun::print method will create a reportOutput object and call its print method to print the report to a printer. If the target is viewerClass, it will instead call the createViewer method to get a ReportOutputUser object. Then it will call methods on the object: startReport, startPage, startSection, startField, outputStringField, and so on. When the report is run, the Text property of the text controls of the report will be written to the print window.