#include “BlackIceDEVMODE.h”
int GetPaperLength(BlackIceDEVMODE* pDevMode);
Description
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);
Parameters
BlackIceDEVMODE* pDevMode - pointer to the BlackIceDEVMODE structure
Return value
Actual paper length (integer number).
Programming Notes
None
Code Example
None