Retrieves the width in pixels, of the drawing area of the printer page.
Type
Description
Long
A long expression that indicates the width in pixels, of the drawing area of the printer page.
The ClientWidth property provides the width of the printable area on the page. This value can be used to adjust your content dynamically, helping you implement a "fit to page" printing feature in your application.
Use the PageOrientation
property to specify whether the page is landscape oriented. Use the Settings
property to specify different options for the printer before previewing or
printing. Use the ClientHeight property
to retrieve the height in pixels of the print page.