Is there an easy way in Java to do the following?
- Connect to a printer (will be a local printer and the only printer connected to the machine).
- Print pages that are 2 pages in 2 different printer trays.
- Get the current print queue count, i.e. I have 100 items to print and 34 have been currently printed, the printer queue should now read 66.
Some quick hints:
print from java: see A Basic Printing Program
status of printing job: you might be able to get something useful by using a PrintJobListener: