Member variable CoreWebView2PrintSettings():MediaSize Foundation

Controls the media size setting.

Attribute: VAR EXPORTED
Data type: Numeric (NIL)
Description

This member variable determines whether to use the printer's default paper size or custom dimensions. When set to custom size, the dimensions specified in :PageWidth and :PageHeight are used. When set to default, the printer's currently configured paper size is used.

The possible values are:

0 = Use printer's default paper size

1 = Use custom size (as specified in :PageWidth and :PageHeight)

Note that the :MediaSize setting is ignored when using XbpHTMLViewer2():printToFile().

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.