EnableForcePaperSize

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.

 

EnableForcePaperSize(pBlackIceDEVMODE As Long) As Boolean

 

Input value: pBlackIceDEVMODE            - handle to the BlackIceDEVMODE.

Return value - TRUE if the option was successfully enabled, otherwise FALSE.

 

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