Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Java in General and the fly likes Silent Printing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Silent Printing " Watch "Silent Printing " New topic

Silent Printing

Jim Largent

Joined: Feb 17, 2010
Posts: 6
I've done all the searches and had some success, but I need some help connecting the dots. I have a Book object that I create and it prints fine using a PrinterJob and the dialog pop up. I have another app that uses a DocPrintJob that I created from the printService obj and I don't need to pop up the dialog in order for it to print.

My problem is I need to print the Book object without the printDialog popup. When I leave out the printJob.printDialog() and then call printJob.print(), nothing happens. So how can I get a Book to print without the dialog?
subject: Silent Printing
Similar Threads
Web Start and SSL
Capturing the current window's cotents??
How to print without seeing the print dialog box?
Capturing the current window's cotents?
printDialog on a Dual Headed Machine