Thanks for the reply.
I created one sample report in BaanERP 5.0c and tried to use the following code in the report script.
brcd.fld = chr$(27) & chr$(22) & ")#)" & str$(edit$(tisfc001.pdno,"999999999"))
and I am using brcd.fld in the report layout. When I run the report, I do not see any barcode printed in bwprint but if I right click the position where actually the barcode should be , I do get the menu for the correct barcode type (code 39). Any thoughts what is causing this and how to make it work?