'Declaration Public Overloads Shared Function Print( _ ByVal sectionDocument As SectionDocument, _ ByVal showPrintDialog As Boolean, _ ByVal showPrintProgressDialog As Boolean, _ ByVal usePrintingThread As Boolean _ ) As Boolean
public static bool Print( SectionDocument sectionDocument, bool showPrintDialog, bool showPrintProgressDialog, bool usePrintingThread )
Parameters
- sectionDocument
- The section document to be printed. This document contains the content and layout information for the print job.
- showPrintDialog
- Specifies whether to display the print dialog before printing. If set to
true
, the print dialog is shown, allowing the user to select printer settings and preferences. - showPrintProgressDialog
- Specifies whether to display a print progress dialog during the printing process. If set to
true
, a dialog providing feedback on the printing progress is displayed to the user. - usePrintingThread
- Determines whether the printing process should be executed on a separate thread. If set to
true
, printing is performed on a background thread, which can help maintain UI responsiveness during the print operation.
Return Value
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 printing.