Printing to a label printer from a web-based Java application
Posted on 2005-03-16
We have a Java-based web application, using Apache Tomcat as the server. We want to be able to print to label printers using various sizes of label stock (significantly smaller than legal, letter, etc.).
Additionally, because this is a label and not a whole document, we want the browser to ignore its header and footer settings.
Has anyone accomplished this, or heard of anyone who has?
When we print to our sample printer (a Brother P-touch QL500), one of two things happens:
If in Portrait mode, get one label with the browser's defined header and footer.
If in Landscape mode, get enough labels to make an 8.5" wide piece of paper (Page 1 of 27 and so on...)