SetBarcodeUnit

Sets the units used by SetBarcodeXOffset and SetBarcodeYOffset for positioning the barcode. It does not change the units used for calculating the barcode sizes. The line and module sizes are always based on pixels to help recognition

SetBarcodeUnit (pDevMode As Long, dwUnit As Long) As Boolean

 

Input value - pDevMode: handle to the BlackIceDEVMODE structure

Input value - dwUnit: can be one of the following values:

            0: the offsets are specified in pixels.

            1: the offsets are specified in tenths of millimeters.

            2: the offsets are specified in hundredths of inches.

Return value - TRUE on success, FALSE otherwise.

 

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