User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 455,972 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,808 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 346 | Replies: 1
Reply
Join Date: Apr 2007
Posts: 5
Reputation: f.damati is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
f.damati f.damati is offline Offline
Newbie Poster

Question print button

  #1  
Nov 23rd, 2007
I want to make a button which will print a page using the printer, so when the user press it certain page will be printd
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2007
Location: Coimbatore-India
Posts: 8
Reputation: arumugam4all is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
arumugam4all arumugam4all is offline Offline
Newbie Poster

Solution Re: print button

  #2  
Nov 24th, 2007
This will print the Content in TextArea... PrinterJob job= PrinterJob.getPrinterJob();
if(job.printDialog()){
try {

job.setPrintable(area.getPrintable(null,null));
job.print();
}catch(Exception e) {
JOptionPane.showMessageDialog(this,"Error While Printing"+e);
}
Arumugam
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Java Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Java Forum

All times are GMT -4. The time now is 9:13 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC