The PrintDialog property determines whether the standard
browser print dialog is displayed when the PrintDocument method
is called. The default value is True, which displays the print dialog
provided by the Microsoft Edge WebView2 runtime. This allows users to
select a printer, configure printing options, and choose whether to
proceed with printing.
When this property is False, the document is printed directly
without displaying a print dialog or requiring user interaction. The
control uses the printer specified by the PrinterName property,
or the default Windows printer if no printer name has been specified.
Printer-specific settings, such as PrintColorMode, are applied
when printing directly.
The PrintDialog property does not affect the SaveDocument
method or the generation of PDF documents. Page layout properties,
such as margins, page dimensions, orientation, and scaling, can be
used independently of this property.
Printing is performed asynchronously by the WebView2 runtime. A
successful call to the PrintDocument method indicates that the
print request was accepted, but does not guarantee that the document
has been printed successfully. Applications that require confirmation
of printing must monitor the printer or its print queue separately.