| Author |
Java Print Dialog
|
Meet Gaurav
Ranch Hand
Joined: Oct 08, 2008
Posts: 492
|
|
Hi
Am using the below code to print the txt files. But its not showing print dialog, By default its printing in default printer
Someone please assist me, how to invoke the print dialog using below code.
|
 |
Steve Luke
Bartender
Joined: Jan 28, 2003
Posts: 3041
|
|
|
Have you looked at the java.awt.print API, specifically the PrintJob? There is also a Printing lesson in the Tutorials.
|
Steve
|
 |
Meet Gaurav
Ranch Hand
Joined: Oct 08, 2008
Posts: 492
|
|
Steve thanks for replying. I seen all these tutorials nothing helps me. awt is not working in my case, the only code support for my case is as I submitted above
Need the Print Dialog for that code. Please help
Any way to merge below code in the above method to display print dialog, Please assist
PrinterJob pj = PrinterJob.getPrinterJob();
pj.printDialog();
|
 |
 |
|
|
subject: Java Print Dialog
|
|
|