EnableForcePaperSize

 

 

#include “BlackIceDEVMODE.h”

 

BOOL                         EnableForcePaperSize(BlackIceDEVMODE* pDevMode);

 

Description

 

Enables the "Force Paper Size" option in the Printer Driver. When enabled, the documents will always be printed using the paper size and resolution settings specified, regardless of the Paper size and DPI settings of the application. The selected paper size and DPI options must be set before calling the EnableForcePaperSize function. After the EnableForcePaperSize function has been called, the paper and DPI settings cannot be changed in the BlackIceDEVMODE structure. This option is intended to be used with certain applications that ignores the user’s paper settings or if an application unable to print the target paper size. Not recommended for general use.

 

Parameters

 

BlackIceDEVMODE* pDevMode  - pointer to the BlackIceDEVMODE structure.

 

Return value

 

TRUE if the option was successfully enabled, otherwise FALSE.

 

Programming Notes

 

None

 

Code Example

 

None