Progress® Telerik® Reporting R1 2021
ReportProcessor.Print Method
Note: This API is now obsolete.
Prints a report document using the specified printer settings.
Namespace:
Telerik.Reporting.ProcessingAssembly: Telerik.Reporting (in Telerik.Reporting.dll)
Syntax
[ObsoleteAttribute("The static (Shared) ReportProcessor.Print method is now obsolete. Please create an instance of the ReportProcessor class and use the PrintReport method.")] public static void Print( IReportDocument reportDocument, PrinterSettings printerSettings )
Parameters
- reportDocument
- Type: Telerik.ReportingIReportDocument
Specifies an instance of a report document to print. Both Report and ReportBook documents are supported. - printerSettings
- Type: System.Drawing.PrintingPrinterSettings
Specifies the printer settings to be used when printing the document. If null or invalid settings are specified, the Print Dialog appears.
Remarks
To prevent the Print Dialog from appearing, you should specify valid
printer settings to this method.
Examples
This example illustrates how to prevent the standard Print Dialog from
appearing in a batch print operation or when printing from a service.
C#
// Create an instance of the report to print. IReportDocument reportDocument = new MyReport(); // Obtain the settings of the default printer. PrinterSettings printerSettings = new PrinterSettings(); // Adjust the printer settings if necessary... // Print the report using the printer settings. ReportProcessor.Print(reportDocument, printerSettings);
VB
' Create an instance of the report to print. Dim reportDocument As IReportDocument = New MyReport() ' Obtain the settings of the default printer. Dim printerSettings As New PrinterSettings() ' Adjust the printer settings if necessary... ' Print the report using the printer settings. ReportProcessor.Print(reportDocument, printerSettings)
Version Information
Obsolete (compiler warning) in 1.0.1