views:

1044

answers:

1

as I googled for problem, somehow java printing API is crippled with limitation that all pictures sent to printer must be printed in 72dpi resolution. We are using jasper report to print documents and no matter how big barcode we draw, barcode reader won't scan it.. any similar experiences? How to solve this issue?

+3  A: 

You need to specify the printer resolution by means of attribute PrinterResolution. You should also know the source resolution so it is correctly converted such as:

PrinterResolution pr = new PrinterResolution(300, 300, PrinterResolution.DPI);
Fernando Miguélez