I've never done printing in this fashion and since you didn't give us PrintJobWatcher I can't compile this code, but I'd say that starting out by opening a text file then setting the document type to an image (PNG) is probably a bad idea.
Originally posted by Shivang Vyas:
Have you looked over the
Java Print Service API User Guide? There's some examples in there that may prove instructive.
[ December 31, 2003: Message edited by: Joe Ess ]