Help Center

AfxGetPrinterPhysicalWidthfunction

Returns the width of the physical page, in device units.

PrintingfunctionAfxPrinter.incdocumented

Syntax

FUNCTION AfxGetPrinterPhysicalWidth (BYREF wszPrinterName AS WSTRING) AS LONG

Parameters

NameDescription
wszPrinterNameThe printer name.

Return value

The width of the physical page, in device units. For example, a printer set to print at 600 dpi on 8.5-x11-inch paper has a physical width value of 5100 device units. Note that the physical page is almost always greater than the printable area of the page, and never smaller.

Description

Returns the width of the physical page, in device units.

Reference

  • Include file AfxPrinter.inc
  • Defined in AfxNova/AfxPrinter.inc:738
  • Documented in Printing/Printer Functions.md
  • Topic: Printer Functions