morpheus
18th July 2002, 10:02
Hello,
I need to print barcodes through BaaN IV. The OS is Windows NT. The documents that I have gone through talk about some barcode directory and printinf file. But, none of them is available on my system. Is it that these files/directories are required for UNIX only? If no, then from where to get them?
Waiting...

klesch
18th July 2002, 10:43
I strongly suggest you to print barcodes using bwprint functionality.

A good document exists that covers this well. I will try to find it for you.

carice
18th July 2002, 10:47
- First of all file dbocx32.ocx must be installed in path c:\baan\bin\dbocx32.ocx

- This ocx must be registered ;
regsvr32 c:\baan\bin\dbocx32.ocx

- start bwprint and do the barcodetest from helpmenu.
If you see barcodes; ocx is installed and registered.
Now you have to couple a barcodefont to a fonttype.

- In your reports; you have to set the font to that specifiek font for the fields that must be printed as barcode.



Hopefully this will help you.

PS: I just posted a thread; maybe you can help me!!

klesch
18th July 2002, 10:50
This is a quick quide I was talking about. It contains everything you will need.

morpheus
18th July 2002, 14:33
Hello,
I have gone through the guide mentioned by you. Thanks. I have been able to print the barcode. But, can you explain me the following syntax, from the guide -

p.barcode = chr$(27) & chr$(22) & "E#%" & "Q5412"

Actually, it is the "Q5412" thing that is confusing me.
I have printed the barcode for the production order #, having only one digit. I replaced "E#%" with "E#!".
The other doubt I have is that does BaaN prints only linear barcodes only or the 2-D and 3-D barcodes also.

klesch
18th July 2002, 16:29
Q5412 is the value that has to be printed as barcode. There are several standards for printing barcodes and some of them support alpha characters as well.

I'm not sure, but I think that only linear barcodes are supported. Will someone correct me?

morpheus
19th July 2002, 08:17
Hello,
That's exactly what I was thinking about. But, when I execute the session, then I get only "Q" written under the barcode. So, the barcode is generated probably only for "Q" and not the complete string!! Got to work on that too. Also, tell me how to print a number of fields in barcode. Like, if i want to have a barcode having the following values -

Item Code, Supplier Code, Purchase Price, etc.

klesch
19th July 2002, 10:22
You get only one character becase you replaced "E#%" with "E#!".

"E" means that barcode type is Code 39.

"#" means the height of 3 characters

"%" means that the input string's length is 5 characters. ("!" means 1.)

See tables on page 3 of the document I've posted. Everything will be clear instantly.

If you want to print itemcode as a barcode (Code 39) then the following code should be used


p.barcode = chr$(27) & chr$(22) & "E#0" & tiitm001.item


I hope that this helps you.

morpheus
19th July 2002, 11:36
Hello,
I understand what you say, and I also understand what the document says. But, I am still unable to see the barcode in the preview mode. I would like you to see my code. Please give me your mail id so that I can mail you the dump.

klesch
19th July 2002, 12:46
My email address is klesch@its.si. But I will not be able to help you until 5th of August. I'm starting my vacation today.

By the way: Did you install dbocx32.ocx?

morpheus
19th July 2002, 14:44
Yes, the .ocx file has been registered. Also, I have been able to print the barcode. I had to increase the report field length.
Thanks.