Printer collation. See COREWEBVIEW2_PRINT_COLLATION for descriptions of collation. The default value is COREWEBVIEW2_PRINT_COLLATION_DEFAULT.
Printer color mode. See COREWEBVIEW2_PRINT_COLOR_MODE for descriptions of color modes. The default value is COREWEBVIEW2_PRINT_COLOR_MODE_DEFAULT.
Number of copies to print. Minimum value is 1 and the maximum copies count is 999. The default value is 1.
Printer duplex settings. See COREWEBVIEW2_PRINT_DUPLEX for descriptions of duplex. The default value is COREWEBVIEW2_PRINT_DUPLEX_DEFAULT.
Printer media size. See COREWEBVIEW2_PRINT_MEDIA_SIZE for descriptions of media size. The default value is COREWEBVIEW2_PRINT_MEDIA_SIZE_DEFAULT.
Page range to print. Defaults to empty string, which means print all pages. If the Page range is empty string or null, then it applies the default.
Prints multiple pages of a document on a single piece of paper. Choose from 1, 2, 4, 6, 9 or 16. The default value is 1.
The name of the printer to use. Defaults to empty string. If the printer name is empty string or null, then it prints to the default printer on the user OS.
Set the Collation property.
Set the ColorMode property.
Set the Copies property. Returns E_INVALIDARG if an invalid value is provided and the current value is not changed.
Set the Duplex property.
Set the MediaSize property.
Set the PageRanges property.
Set the PagesPerSide property. Returns E_INVALIDARG if an invalid value is provided, and the current value is not changed.
Set the PrinterName property. If provided printer name doesn't match with the name of any installed printers on the user OS, ICoreWebView2PrintCompletedHandler handler will return errorCode as S_OK and printStatus as COREWEBVIEW2_PRINT_STATUS_PRINTER_UNAVAILABLE.
The orientation can be portrait or landscape. The default orientation is portrait. See COREWEBVIEW2_PRINT_ORIENTATION.
Sets the Orientation property.
The scale factor is a value between 0.1 and 2.0. The default is 1.0.
Sets the ScaleFactor property. Returns E_INVALIDARG if an invalid value is provided, and the current value is not changed.
The page width in inches. The default width is 8.5 inches.
Sets the PageWidth property. Returns E_INVALIDARG if the page width is less than or equal to zero, and the current value is not changed.
The page height in inches. The default height is 11 inches.
Sets the PageHeight property. Returns E_INVALIDARG if the page height is less than or equal to zero, and the current value is not changed.
The top margin in inches. The default is 1 cm, or ~0.4 inches.
Sets the MarginTop property. A margin cannot be less than zero. Returns E_INVALIDARG if an invalid value is provided, and the current value is not changed.
The bottom margin in inches. The default is 1 cm, or ~0.4 inches.
Sets the MarginBottom property. A margin cannot be less than zero. Returns E_INVALIDARG if an invalid value is provided, and the current value is not changed.
The left margin in inches. The default is 1 cm, or ~0.4 inches.
Sets the MarginLeft property. A margin cannot be less than zero. Returns E_INVALIDARG if an invalid value is provided, and the current value is not changed.
The right margin in inches. The default is 1 cm, or ~0.4 inches.
Set the MarginRight property.A margin cannot be less than zero. Returns E_INVALIDARG if an invalid value is provided, and the current value is not changed.
TRUE if background colors and images should be printed. The default value is FALSE.
Set the ShouldPrintBackgrounds property.
TRUE if only the current end user's selection of HTML in the document should be printed. The default value is FALSE.
Set the ShouldPrintSelectionOnly property.
TRUE if header and footer should be printed. The default value is FALSE. The header consists of the date and time of printing, and the title of the page. The footer consists of the URI and page number. The height of the header and footer is 0.5 cm, or ~0.2 inches.
Set the ShouldPrintHeaderAndFooter property.
The title in the header if ShouldPrintHeaderAndFooter is TRUE. The default value is the title of the current document.
Set the HeaderTitle property. If an empty string or null value is provided, no title is shown in the header.
The URI in the footer if ShouldPrintHeaderAndFooter is TRUE. The default value is the current URI.
Set the FooterUri property. If an empty string or null value is provided, no URI is shown in the footer.