PrintMgmtReportRun.setPrintDestinationFileName Method [AX 2012]
Sets the print destination file name for each document running in print management.
private void setPrintDestinationFileName(SrsReportDataContract _reportContract)
Run On
CalledParameters
- _reportContract
- Type: SrsReportDataContract Class
The report contract for which the file name should be set.
Print mgmt setup form provides ability to specify only one destination file name. For cases where multiple documents needs to be printed e.g. multiple Sales Invoices, then to avoid overwriting the same file, we generate a unique sub-directory under the root directory specified in print mgmt settings and then save each document with a number.
E.g. If Print mgmt setting for SalesInvoice was specified as c:\Invoices\SalesInvoice.pdf, the framework will then automatically generate the new subdirectory and save the files.
"c:\Invoices\Admin_salesinvoice_ivig4ak4.0il\salesinvoice_1.pdf etc.
Community Additions
ADD
Show: