GetPagePhysicalOffsetY 

Returns the height of unwritable margin of the paper in pixels.

 

GetPagePhysicalOffsetY (pBlackIceDEVMODE As Long) As Long

 

Input value   - handle to the BlackIceDEVMODE.

Return value            - height of the margin in pixels.

 

NOTE: For 32-bit applications , use pBlackIceDEVMODE as Integer, instead of Long.