FAQ: TBarCode/SAPwin - SAP Barcode DLL
How Can I Fine Tune the Barcode Position?
How Can I Fine Tune the Barcode Position?
Position may be:
- relative (no X/Y parameters specified in Printcontrol) or
- absolute (X/Y parameters specified in Printcontrol)
Additionally you can change the printing direction to print the barcode from base line upwards - see parameter Direction in the barcode.ini file:
Direction=1
If you print the barcode always to the same position you can specify X and/or Y parameters in the Printcontrol.
-
Set the target coordinates with the parameters X=[mm],Y=[mm] in the Printcontrol prefix:
bC=39,X=100,Y=50,B=50,H=20,D=
The print control prefix can be modified in transaction SE73 (printer bar codes). Click the prefix, and then the button Maintain PrintControl. After that, a window will be displayed allowing you to change the character sequence.
If the barcode is printed on a relative position (inline) you can use the Shift parameter in the Barcode.ini file to fine-tune the bar codes Y position. The shift parameter was introduced to overwhelm printer driver problems or to make relative positioning compatible with other solutions (e.g. hardware barcode printer extensions).
-
In the Barcode.ini you have to set the Direction parameter to 1, after that you can adjust the vertical bar code position via the Shift parameter, wherein a negative value is also allowed.
[SETTINGS] Direction=1 Shift=1