The OpenD Programming Language

ICoreWebView2PrintSettings2.get_MediaSize

Printer media size. See COREWEBVIEW2_PRINT_MEDIA_SIZE for descriptions of media size. The default value is COREWEBVIEW2_PRINT_MEDIA_SIZE_DEFAULT.

If media size is COREWEBVIEW2_PRINT_MEDIA_SIZE_CUSTOM, you should set the PageWidth and PageHeight.

Printing uses default value of printer supported media size if an invalid value is provided for the specific printer.

This value is ignored in PrintToPdfStream method.

interface ICoreWebView2PrintSettings2
@" propget"
HRESULT
get_MediaSize
(
COREWEBVIEW2_PRINT_MEDIA_SIZE* value
)

Meta