PrintBackground Property  
 

Determines whether background colors and images are included when printing a document.

Syntax

object.PrintBackground [= True | False ]

Remarks

The PrintBackground property determines whether background colors and images are included when printing a document. When this property is True, the WebView2 runtime includes background colors and images defined by the document's HTML and CSS styles. When False, background colors and images are generally omitted, which can reduce ink or toner consumption when printing to a physical printer.

The default value of this property is False. Setting this property to True does not guarantee that all background elements will be printed, since the appearance of the document may also be affected by its CSS print styles and other rendering rules.

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

Data Type

Boolean

See Also