Platforms to show: All Mac Windows Linux Cross-Platform

WebView2PrintSettingsMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class WebView2 MBS WinFrameworks Plugin 23.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Settings used by the PrintToPdf method.

Other programmatic printing is not currently supported, but Microsoft may add more later.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Collation

Constant Value Description
kCollationCollated 1 Indicate that the collation has been selected for the printed output.
kCollationDefault 0 The default collation for a printer.
kCollationUncollated 2 Indicate that the collation has not been selected for the printed output.

Color Modes

Constant Value Description
kColorModeColor 1 Indicate that the printed output will be in color.
kColorModeDefault 0 The default color mode for a printer.
kColorModeGrayScale 2 Indicate that the printed output will be in shades of gray.

Duplex Modes

Constant Value Description
kDuplexDefault 0 The default duplex for a printer.
kDuplexOneSided 1 Print on only one side of the sheet.
kDuplexTwoSidedLongEdge 2 Print on both sides of the sheet, flipped along the long edge.
kDuplexTwoSidedShortEdge 3 Print on both sides of the sheet, flipped along the short edge.

Orientations

Constant Value Description
kOrientationLandscape 1 Print the page(s) in landscape orientation.
kOrientationPortrait 0 Print the page(s) in portrait orientation.

This class has no sub classes.

Some methods using this class:

Blog Entries

Xojo Developer Magazine

Release notes


The items on this page are in the following plugins: MBS WinFrameworks Plugin.


WebView2ExceptionMBS   -   WebView2WindowFeaturesMBS


The biggest plugin in space...