File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jdbcodbc print option