SrsReportRunInterface.runReport Method [AX 2012]

Runs the report using the data contract.

Syntax

public void runReport()

Run On

Called

Remarks

The API provides the ability to run the report based on the settings of an SrsPrintDestinationSettings object.

The SrsReportDataContract report contract object in the parmReportContract method contains the print destination settings as a nested contract. The user should set the relevant values on the print settings contract before calling this API.

The report will be sent to a printer or file or emailed based on the print settings.

Before calling this API, the user should validate contracts by calling the validateContract method. Typical usage will be:

  1. Get an instance of the report run interface from an instance of the SrsReportRunFactory class.

  2. Get the report data contract using parmReportContract.

  3. Set the parameter values on the contract including the SrsPrintDestinationSettings object

  4. Validate contracts.

  5. Run the report.

See Also

Reference

SrsReportRunInterface Interface