SRSProxy.renderReportToPrinter Method [AX 2012]
Renders a reporting services report and sends the results to the printer.
Syntax
Note
The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.
Microsoft Dynamics AX 2012 R3
public boolean renderReportToPrinter(
str reportPath,
CLRObject parameterValueArray,
str printerName,
boolean overridePrintContractSettings,
str deviceInfo,
int numberOfCopies,
boolean overridePaperSettings,
[str pageSettings])
Microsoft Dynamics AX 2012 R2 (SYS)
public boolean renderReportToPrinter(
str reportPath,
CLRObject parameterValueArray,
str printerName,
str deviceInfo,
int numberOfCopies,
boolean landscape,
[str pageSettings])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
public boolean renderReportToPrinter(
str reportPath,
CLRObject parameterValueArray,
str printerName,
str deviceInfo,
int numberOfCopies,
boolean landscape)
Microsoft Dynamics AX 2012 (FPK)
public boolean renderReportToPrinter(
str reportPath,
CLRObject parameterValueArray,
str printerName,
str deviceInfo,
int numberOfCopies,
boolean landscape)
Microsoft Dynamics AX 2012 (SYS)
public boolean renderReportToPrinter(
str reportPath,
CLRObject parameterValueArray,
str printerName,
str deviceInfo,
int numberOfCopies,
boolean landscape)
Run On
Called
Parameters
- reportPath
Type: str
The path and name of the report to print.
- parameterValueArray
Type: CLRObject Class
The parameters and their values to display the report.
- printerName
Type: str
Name of the printer
- overridePrintContractSettings
Type: boolean
The boolean value indicating if print contract setting is overridden programmatically.
- deviceInfo
Type: str
The device specific information that will be used by the reporting services to print the specified file format.
- numberOfCopies
Type: int
The number of copies to print.
- overridePaperSettings
Type: boolean
A value indicating whether paper settings is overridden.
- pageSettings
Type: str
A value containing all printer properties settings chosen by user.
Return Value
Type: boolean
true if it is successful; otherwise, false.