'Declaration Public Overloads Shared Function Print( _ ByVal pageDocument As PageDocument, _ ByVal printingSettings As PrintingSettings _ ) As Boolean
public static bool Print( PageDocument pageDocument, PrintingSettings printingSettings )
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.
- printingSettings
- A GrapeCity.Viewer.Common.PrintingSettings enumeration that specifies the printing options such as whether to show the print dialog, the print progress dialog, use a printing thread, and the style of the dialog. This allows for granular control over the printing process.
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.