Meaningless Drivel is fun!*
The moose likes JDBC and the fly likes jdbcodbc print option Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "jdbcodbc print option" Watch "jdbcodbc print option" New topic
Author

jdbcodbc print option

jagruti patil
Greenhorn

Joined: May 20, 2001
Posts: 7
I m working on a project of inventory control system
I have made my frontend in java & backend in oracle.
I have given a print option.So I want to get a printout of the data which has been entered in the database.
I have done the coding for the print in the below given code.
PrinterJob pjob = PrinterJob.getPrinterJob();
PageFormat pf = pjob.defaultPage();
pjob.setPrintable(new PrintableClass(), pf);
try {
if (pjob.printDialog()) {
pjob.print();
}
} catch (PrinterException e) {
}
PrinterJob pjob = PrinterJob.getPrinterJob();
PageFormat pf = pjob.defaultPage();
try {
if (pjob.printDialog()) {
pjob.print();
}
} catch (PrinterException e) {
}
I hope your help would make my things easier
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
This forum is intended for questions and comments about this web site, www.javaranch.com. It is not for questions about the Java language - that's what all the other forums are for. I'm moving this to the JDBC forum.


"I'm not back." - Bill Harding, Twister
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: jdbcodbc print option
 
Similar Threads
Printing a GUI
jdbcodbc print option
Sizing a JFrame during printAll()
Printing the applet screen
Printing: Can�t use draw drawString(...) in a loop!?