Help Center

CPrint.GetMarginsPixelsmethod

Retrieves the margins (the non-printable area) of the printer page, in pixels.

PrintingmethodCPrint.incdocumented

Syntax

SUB GetMarginsPixels (BYREF nLeft AS LONG, BYREF nTop AS LONG, BYREF nRight AS LONG, BYREF nBottom AS LONG)
FUNCTION GetMarginsPixels () AS RECT

Parameters

NameDescription
nLeftLeft margin.
nTopTop margin.
nRightRight margin.
nBottomBottom 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