views:

354

answers:

3

Hi.

Any ideas for barcode generation into a textbox in c++ under Qt4?

The idea is to have it in some kind of text format to save it and be able to read it later on.

What about generating the image for printing?

Thanks in advance.

A: 

It depends on what kind of a barcode you are talking about, however, a search on Codeproject yielded this interesting library that is written in C#, however it can generate Code 39, Code 128, Interleaved 2 of 5, to name but a few. Perhaps, this could be recompiled to make it look like a COM object using Runtime Callable COM Wrapper (RCCW), meaning on the C++ side, it looks like a COM library? And hence interact with it from a QT/C++ runtime environment.

Hope this helps, Best regards, Tom.

tommieb75
A: 

Please check out zint.

Also you can download the source from Sourceforge

RP
+1  A: 

Generating a barcode is as simple as using a barcode font. You can embed the font in your application, and create barcode wherever you can put text.

Milan Ramaiya