hejingsong
25th January 2005, 10:19
Hello all:
I want to use below report script to print barcode.but dispay nothing in preview window.why ?


declaration:
|domain tcmcs.str13 barcode.old.item

before.old.item.1:
before.layout:
|barcode.old.item = set.barcode.field(old.item,9,5)
barcode.old.item = (chr$(27) & chr$(22) & "*#A" & (old.item))

lbencic
25th January 2005, 17:18
I see you tried the set.barcode.field include first too, and that did not work. Couple things to try. Is your string long enough? Including your extra characters? And it should not have blanks in it, check out the value in debugger.
What does print on the print preview? Can you see barcodes if, from print preview screen (bw print screen) you run the Barcode Test (Help drop down menu / Barcode Test)

suhas-mahajan
25th January 2005, 18:19
Also, upgrade your BaaN client to latest one.

Regards,

-Suhas

hejingsong
26th January 2005, 03:23
hi all:
I combile report with dubugger,and the value of barcode.old.item is "\e^V*#A00054786".The string length is enough,and no blank.but show nothing on report preview.My baan client is 7.3a.01.137 ,I think it is the lastest one!

lbencic
26th January 2005, 16:58
Can you see the barcode under 'Test Barcode'?

hejingsong
27th January 2005, 03:23
Where can i find "Barcode test"?

hejingsong
27th January 2005, 05:03
Sorry for my previous post ,i find BWprint in d:\baan\bin directory.i can find all barcode type after choicing barcode test!!but report on display driver has no barcode !

hejingsong
27th January 2005, 06:14
Can anybody show driver setting that print barcode choice. :D

kbartelds
27th January 2005, 11:23
Have you registered the ocx files in the windows registry? Also check if on the report layout there is enough space for the barcode with the given height (if not no barcode is printed). Another thing to check is whether all characters in de barcode field are legal according to the barcode type.

Regards,
Klaas

lbencic
27th January 2005, 20:06
How to access the barcode test that I am referring to:

Print your report, choose print preview. This brings up the report, running bwprint interactively. From there, no matter if the barcode prints ON the report or not, go under Help you will see barcode test. This brings up (hopefully) a bunch of bar codes. Until you see barcodes in that, you will not have hope of seeing yours. You may have already seen that running your way of testing, not sure.

You can 'register' the ocx bar codes as suggested Kbartheds suggests, and as described in the Barcode Printing and BWprint Quick Guide #1310. Frankly, this did not work the only time I tried it, but upgrading their bclient did. The newer bclient installs should register already.

You said you have installed the most recent. Try this test, and if the bar codes appear, then we need to look at your string again.

kbartelds
28th January 2005, 10:37
An easier way to get the barcode test: use explorer to go to the clients baan\bin directory and manually start bwprint.exe.

Regards,
Klaas