FAQ: TBarCode/SAPwin - SAP Barcode DLL
Barcode Log File Coordinates
Barcode Log File Coordinates
The following sample describes the barcode position parameters you can see in the barcode.log file:
- Printcontrol parameters are shown first, e.g:
C=128B,B=43,H=7,X=0,A=0,D=
The X position in our example is zero. The Y position is not specified, so it will be taken from actual cursor position by default. - The next parameter is the actual printing cursor position passed from SAP to our DLL. This value is relevant for relative positioning:
Pos: xpos: 240, ypos: 2050
- And then the bounding rectangle of the barcode:
Start point: x: 0, y: 2215 End point: x: 1016, y: 2050
The zero-zero point (origin) of the coordinates depends on the used mapping mode. The origin can either be the top left corner or the bottom left corner of the document.