SetOCRSelectArea

Enables or disables Area Selection for the OCR feature of the printer driver. When enabled, you can use the SetOCRAreaUnit, SetOCRAreaTop, SetOCRAreaLeft, SetOCRAreaWidth and SetOCRAreaHeight functions to set a rectangular area on the page where the OCR will operate.

SetOCRSelectArea(pDevMode As Long, bEnable As Boolean) As Boolean

 

Input value    - handle to the BlackIceDEVMODE structure

Input value    - Set to TRUE to enable the Select Area feature, set to FALSE to disable it.

Return value - TRUE on success, FALSE otherwise.

 

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