01-06-2021 12:52 AM
Hi,
I am looking to insert a barocde of my product serial number in to a MsWord template to get it printed using LabVIEW. Anybody have any idea how to do this?
Many thanks for any response.
01-06-2021 01:35 AM
This could help.
01-06-2021 10:23 AM
That depends on the encoding. There are quite a few barcodes.
They are usually well specified. Simply drawing thin and thick lines in a picture control (or even in a 2D array that converts to a pixmap) isn't that hard.
01-06-2021 10:47 AM
Depending on your requirements, There are .NET libraries like Zxing that will accept a string and generate various barcode formats.
01-07-2021 12:33 AM
Hi JB,
Thanks for the your reply with the link, Now I am able to generate the decide barcode and convert it to a .jpeg. In the link the session Writing a Barcode to a Report Using Report Generation Toolkit says about printing the barcode on word but I think it is creating a new report , I need to include this generated barcode in an existing wordfile at defined location.
Hope I explained well.
01-07-2021 01:17 AM
01-07-2021 03:01 AM
rajeevan@1978 wrote:Thanks for the your reply with the link, Now I am able to generate the decide barcode and convert it to a .jpeg. In the link the session Writing a Barcode to a Report Using Report Generation Toolkit says about printing the barcode on word but I think it is creating a new report , I need to include this generated barcode in an existing wordfile at defined location.
If you can set the report font, you might be able to simply paste the text in the report. If that is how you generate the image. With the barcode font it will show up as barcode.
A text seems a bit more elegant than an image. But I'm not sure if Word will embed the font. If not, it will not show properly on computers that don't have the font. It's something I would (briefly) explore...
01-10-2021 08:31 PM
Hi JB,
The information supplied by you really was helpful and I am able to complete my application to an extend. Is there any way to vary the size of the barcode generated to, I want to fit the same in my limited space in my template. I am attaching the VI which provide me the barcode.
01-10-2021 08:36 PM
Hi,
Thanks for posting your suggestions on my query. As you said a text is always better to present than an image in the case of barcode. So far all the effort to do the same not found any success. So I am continuing with the image at the moment.
Thanks to everybody.