I don't know how or if java writes to a network attached printer. I would guess you have to get your java program to run some sort of system command(s) to get the file to the desired outq.
I believe Zebra printers only support ZPL. You could have your java program generate an IFS text file containing ZPL and then somehow send that text file to the printer.
You can print PDF but, as far as I know, you will need something like ghostscript to convert the pdf file to postscript, or your printer has to understand how to print pdf files.
Searhing midrange.com for the value PRTSTMF will yield a lot of results that might be useful.
-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Steve Richter
Sent: Friday, April 19, 2013 1:36 PM
To: Java Programming on and around the iSeries / AS400
Subject: how does java print to a network attached printer?
can java code, running on the ibm I, print direct to a network attached printer? We have java code that creates a PDF file using iText . But to print the PDF, the PDF file has to be emailed to the user where it is printed using the windows printer drivers.
Does Java supply printer drivers of its own?
In this specific case we print carton labels on a zebra printer using TL Ashford from an RPG program via the spooled file route.
I am asking if a Java program could create a bitmap file containing the label image and print that bitmap direct to a network attached zebra label printer? How to do that?
Do Zebra printers only accept the zebra printer control language or will they also print a bitmap image?
I would like to experiment with it but do not know much java. How does a java program write to a network attached printer?
thanks,
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.