'Declaration Public Overloads Shared Function Print( _ ByVal pageDocument As PageDocument, _ ByVal printerSettings As PrinterSettings _ ) As Boolean
public static bool Print( PageDocument pageDocument, PrinterSettings printerSettings )
Parameters
- pageDocument
- The GrapeCity.ActiveReports.Document.PageDocument instance representing the document to be printed. This document contains the content and layout information for the print job.
- printerSettings
- An instance of PrinterSettings that specifies the settings to be used for the print job, including whether to show the print dialog, the print progress dialog, whether to use a printing thread, and details about the printer configuration.
Return Value
A System.Boolean value indicating the success of the print operation. Returns
true
if the print operation completes successfully; otherwise, returns false
. A return value of false
may indicate that the user cancelled the print job or that an error occurred during the printing process.