Help Center

CPrint.PaperWidthproperty

Gets/sets the paper width in units of 1/10 of a millimeter.

PrintingpropertyCPrint.incdocumented

Syntax

PROPERTY PaperWidth () AS LONG
PROPERTY PaperWidth (BYVAL nWidth AS LONG)

Parameters

NameDescription
nWidthLONG. The printer paper length.

Return value

LONG. The printer paper width.

Description

Gets/sets the printer paper width in units of 1/10 of a millimeter. This value overrides the length of the paper specified by the PaperSize property, and is used if the paper is of a custom size, or if the device is a dot matrix printer, which can print a page of arbitrary length. It must be used if the PaperLength is also used. Alternatively, you can use the SetPageSize function to set both the length and width with only one call.

Reference

  • Include file CPrint.inc
  • Defined in AfxNova/CPrint.inc:727
  • Documented in Printing/CPrint Class.md
  • Topic: CPrint Class