Returns the value of the dmPaperLength member of the DevMode. (DM.dmPaperLength member of BlackIceDEVMODE ) This value represents the 'Actual paper length'.
The returned value is in tenths of millimeters. To convert the value to pixels, use the GetYDPI function and the following formula:
HeightInPixels = (float)GetPaperLength(pDevMode) /254.0* (float)GetYDPI(pDevMode);
GetPaperLength(pDevMode As Long) As Long;
Input value: pDevMode - handle to the BlackIceDEVMODE structure.
Return value - Actual paper length (Long)
NOTE: For 32-bit applications, use pDevMode as Integer, instead of Long.