CPrint.GetMarginsPixelsmethod
Retrieves the margins (the non-printable area) of the printer page, in pixels.
Syntax
SUB GetMarginsPixels (BYREF nLeft AS LONG, BYREF nTop AS LONG, BYREF nRight AS LONG, BYREF nBottom AS LONG)
FUNCTION GetMarginsPixels () AS RECT
Parameters
| Name | Description | |
|---|---|---|
nLeft | Left margin. | |
nTop | Top margin. | |
nRight | Right margin. | |
nBottom | Bottom margin. |
Return value
LONG. The height, in pixels, of the printable area of the page. If there is not a printer attached, it returns 0.
Description
Retrieves the margins (the non-printable area) of the printer page, in pixels.
The overloaded function returns a RECT structure.
Reference
- Include file
CPrint.inc - Defined in AfxNova/CPrint.inc:837
- Documented in Printing/CPrint Class.md
- Topic: CPrint Class