PrintMgmtReportRun::changeDestination Method [AX 2012]

The changeDestination method changes the destination of printing from Screen to PDF file.

client server public static SRSPrintDestinationSettings changeDestination(
    PrintMgmtDocumentType _docType, 
    PrintMgmtPrintSettingDetail _currentSettingDetail, 
    str _documentKeyValue, 
    str _filePath, 
    SRSPrintDestinationSettings _settings)

Run On

Called

Parameters

_docType
Type: PrintMgmtDocumentType Enumeration
A document type.
_currentSettingDetail
Type: PrintMgmtPrintSettingDetail Class
An instance of the PrintMgmtPrintSettingDetail class.
_documentKeyValue
Type: str
A document key value.
_filePath
Type: str
The path that a PDF file will be saved to.
_settings
Type: SRSPrintDestinationSettings Class
An instance of the SRSPrintDestinationSettings class.

Return Value

Type: SRSPrintDestinationSettings Class
And instance of the SRSPrintDestinationSettings class.

This method must be called when the number of reports printing on screen reaches #maxScreenOutput.

Show: