Baanboard.com

Baanboard.com (http://www.baanboard.com/baanboard/index.php)
-   Distribution, Transportation & Warehousing (http://www.baanboard.com/baanboard/forumdisplay.php?f=6)
-   -   Barcodes on BaaN Report (http://www.baanboard.com/baanboard/showthread.php?t=70278)

albertsmid 1st August 2017 21:55

Barcodes on BaaN Report
 
I am trying a multi page BaaN report based on a paper size 8.5 x 11, multi page. On the bottom (footer area) I like to have two barcodes, one aligned with the left margin and one on the right margin. These barcodes should appear on every page of the report.

The issue I am running into is that the fonts and the line spacing is changed after the first barcode is printed.

Printing just one barcode on the first page is no issue, but if the report have multiple pages the second page has the issue with font and line spacing. Tried to adjust the print driver to adjust for this but so far I have not been able to make much progress in resolving this issue.
Has anyone else any ideas how to resolve this issue?

günther 21st August 2017 10:35

Hi albertsmid.

Could you have a look at the barcode Interface script such as $BSE/lib/barcode/<your Printer type>/type<your number> (eg. $BSE/lib/barcode/hp/type01)?

PCL printers such as HP have two font sets (primary, secondary). That allows to change font settings Independent of each other.

\016 = <so> shift out - select secondary font to print subsequent characters
\017 = <si> shift in - select primary font to print subsequent characters

So, our type01 looks like this:

echo "\016\033)0Y\033)s0p8.1h12v0s0b0T*$1*\017\c"
exit 0

Hope that helps!

Regards
Günther


All times are GMT +2. The time now is 14:04.


vB.Sponsors
©2001-2017 - Baanboard.com - Baanforums.com