Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets the value of the printDestinationSettings property.
Syntax
public SRSPrintDestinationSettings printDestinationSettings([SRSPrintDestinationSettings value])
Run On
Called
Parameters
- value
Type: SRSPrintDestinationSettings Class
The new value of the printDestinationSettings property; optional.
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();