'Declaration Public Overloads Shared Function Print( _ ByVal pageDocument As PageDocument, _ ByVal showPrintDialog As Boolean _ ) As Boolean
public static bool Print( PageDocument pageDocument, bool showPrintDialog )
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.
- showPrintDialog
- A System.Boolean value indicating whether the print dialog should be shown to the user before printing. If set to
true
, the print dialog is displayed, allowing the user to modify printer settings such as the printer to use, the range of pages to print, and the number of copies. If set tofalse
, the document is printed directly with the current printer settings.
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.