SRSReportRun.printDestinationSettings Method [AX 2012]

Gets or sets the value of the printDestinationSettings property.

Syntax

public SRSPrintDestinationSettings printDestinationSettings([SRSPrintDestinationSettings value])

Run On

Called

Parameters

Return Value

Type: SRSPrintDestinationSettings Class
The current SRSPrintDestinationSettings property.

Examples

The following example will print the report to an XML file.

// Create an instance of a report.
SRSReportRun report = new SRSReportRun();

// Set the full name of the report.
report.reportName('ReportLibraryName.ReportName.DesignName');

// Do not show the report run form.
report.showDialog(false);

// Print the report to an XML file.
report.PrintDestinationSettings().PrintMediumType(SRSPrintMediumType::File);
report.PrintDestinationSettings().FileFormat(SRSReportFileFormat::XML);
report.PrintDestinationSettings().FileName(@"C:\Public\Reports\ReportExample.html");
report.Run();

See Also

Reference

SRSReportRun Class