property ExPrint.ClientWidth as Long
Retrieves the width in pixels, of the drawing area of the printer page.

TypeDescription
Long A long expression that indicates the width in pixels, of the drawing area of the printer page.
Use the ClientWidth property to determine the width of the printed page, so you can implement the print to page feature for 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.