Help Center

CPrint.GetMarginsUnitsmethod

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

PrintingmethodCPrint.incdocumented

Syntax

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

Parameters

NameDescription
nLeftLeft margin.
nTopTop margin.
nRightRight margin.
nBottomBottom margin.

Description

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

The overloaded function returns a RECT structure.

Reference

  • Include file CPrint.inc
  • Defined in AfxNova/CPrint.inc:876
  • Documented in Printing/CPrint Class.md
  • Topic: CPrint Class