timb25
9th February 2006, 15:55
I have created this script that uses bwprint to print barcodes through a windows printer. I'm using the brp.open, brp.ready, brp.close functions for printing. While debugging the script when the focus gets to brp.close the session hangs and the cpu usage skyrockets to 99%. I end the bwprint process in task manager and the focus in the script finally gets past the brp.close command.

Any suggestions?
----------------------------
Baan runs on HPUX;
Baan Client on Windows 2000
----------------------------

Thanks,
-Tim

richard
9th February 2006, 17:34
Hello,

We were facing a similar problem.
It was due to a wrong barcode field (for example the length of the field was not in balance with the length code).

regards

Example of our coding:
p.barcode1 = chr$(27) & chr$(22) & "*""-"
& "6" & str$(edit$(tisfc001.pdno,"999999"))
& "001001"

timb25
9th February 2006, 20:17
Great!!! That's it!!!! I have a function that looks at each field to barcode then determines the length. There was one field that was coming up blank so the length was not getting set. I set this to default now. Thanks!!!