Help Center

CPrint.PaperLengthproperty

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

PrintingpropertyCPrint.incdocumented

Syntax

PROPERTY PaperLength () AS LONG
PROPERTY PaperLength (BYVAL nLength AS LONG)

Parameters

NameDescription
nLengthLONG. The printer paper length.

Return value

LONG. The printer paper length.

Description

Gets/sets the printer paper length 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. If you use this property, you must also use the PaperWidth property to set the print paper width. 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:711
  • Documented in Printing/CPrint Class.md
  • Topic: CPrint Class