PrintOrientation Property  
 

Determines whether the document is printed in portrait or landscape orientation.

Syntax

object.PrintOrientation [= value ]

Remarks

The PrintOrientation property specifies the page orientation and must be one of the following values:

Constant Description
webPrintOrientationDefault Leaves the page orientation unchanged, allowing the WebView2 runtime to use its current setting. The initial default orientation is portrait.
webPrintOrientationPortrait Uses portrait orientation, with the page taller than it is wide.
webPrintOrientationLandscape Uses landscape orientation, with the page wider than it is tall.

The page orientation determines whether the document is printed in portrait or landscape format. The PageWidth and PageHeight properties specify the page dimensions independently of the selected orientation. When printing to a physical printer, the selected printer must support the requested page size and orientation.

The value of this property affects both printed documents and documents saved in PDF format.

Data Type

Integer (Int32)

See Also