views:

679

answers:

6

Cans someone point in the write direction for printing barcode labels using Java? I can use the barbecue library (http://barbecue.sourceforge.net/) to generate them bar codes as images, but I need a way to put the image (and human readable caption) into an Avery document template for printing.

A: 

Have you tried printing the image that you got from "barbecue" ?

Vincnetas
I can print it, but there is no way to print in to a specific place on a template (at least that I'm aware of).
David Hamilton
+1  A: 

I think you will have to measure your Avery label page with a ruler and then in your Java code, you will have to create a full Letter/A4/whatever page to print and offset your barcode image on that page to the appropriate location based on your measurements with the ruler.

Scott W
They Avery company is frequently used because it is a standard size. These numbers should be written down somewhere already for you, but in any case, measuring them should work!
Karl
A: 

were you able to resolve this issue ? I am facing the same problem now. It works good in windows environment, i am getting barcode image as well as the label underneath the barcode but the same program is only generating barcode ( excluding the label underneath)

thanks,

speedracer
Haven't yet found a perfect solution. I have found another library that might be useful: http://barcode4j.sourceforge.net/.
David Hamilton
A: 

I'm printing bar codes using java but I'm using a printer which have a pre-programmed function for printing bar codes. So I'm only telling the printer what codes to print and it does the rest. If you willing to pay for a printer it might saves you some time.

This may or may not be useful to you, but I thought i'd mention it.

Silence
A: 

The iText library supports pretty much every kind of barcode imaginable. You can generate pdfs and either save them or print them internally.

lucasmo
A: 

Hi "Silence",

I am thinking to use barbecue, you wrote you just send the codes and then printer prints the barcode. It sounds good, could you pelase tell me the model/name of the printer you use?

Thanks

ozan