I am using the Java print service API to select PrintServiceand then pass it to JasperReport JRPrintServiceExporter. The basic idea is simply to send the document to the one provided PrintService. Actually used java.awt.print.PrinterJob.print().
It looks like you cannot send a print job to a printer with an attribute PrinterIsAcceptingJobs.NOT_ACCEPTING_JOBSwhen it is disabled or disabled. If I sent him a task, I would receive PrinterException, because he does not accept the task,
Can I print "NOT_ACCEPTING_JOBS" on the printer? In a real operating system, this works; the task is queued in the pool. How to achieve the same effect using the print APIs?
source
share