AfxGetPrinterPhysicalOffsetYfunction
Returns the distance from the top edge of the physical page to the top edge of the printable area, in device units.
Syntax
FUNCTION AfxGetPrinterPhysicalOffsetY (BYREF wszPrinterName AS WSTRING) AS LONG
Parameters
| Name | Description | |
|---|---|---|
wszPrinterName | The printer name. |
Return value
The distance from the top edge of the physical page to the top edge of the printable area, in device units. For example, a printer set to print at 600 dpi on 8.5-by-11-inch paper, that cannot print on the topmost 0.5-inch of paper, has a vertical physical offset of 300 device units.
Description
Returns the distance from the left edge of the physical page to the left edge of the printable area, in device units.
Reference
- Include file
AfxPrinter.inc - Defined in AfxNova/AfxPrinter.inc:723
- Documented in Printing/Printer Functions.md
- Topic: Printer Functions