Print different format files using java API

Reply

Join Date: Jan 2009
Posts: 3
Reputation: praveenrajmat is an unknown quantity at this point 
Solved Threads: 0
praveenrajmat praveenrajmat is offline Offline
Newbie Poster

Print different format files using java API

 
0
  #1
Jun 9th, 2009
Hi All,

I need to print documents ( MS-DOC, PDF, Plain Text ) using Java API. I do not need window for configuring number of pages to be print etc etc.. Whatever the file specified should be printed.
I checked with
  1. printerJob.print();
from java API and able to print simple text. I need to approach same for files of different formats.
Any other API's ? How do i approach?
Any help will be appreciated.

Thanks,
Praveen
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,600
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 460
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven

Re: Print different format files using java API

 
0
  #2
Jun 9th, 2009
Last edited by adatapost; Jun 9th, 2009 at 7:46 am.
Failure is not fatal, but failure to change might be. - John Wooden
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 972
Reputation: JamesCherrill is just really nice JamesCherrill is just really nice JamesCherrill is just really nice JamesCherrill is just really nice JamesCherrill is just really nice 
Solved Threads: 146
JamesCherrill JamesCherrill is offline Offline
Posting Shark

Re: Print different format files using java API

 
0
  #3
Jun 9th, 2009
If you can render the file into a Java window, then you can also print it. see http://java.sun.com/docs/books/tutorial/2d/printing/
So this come down to asking "what file types can you display on Java?" PDFs can be displayed using Adobe's own free Java pdfviewer. For MS word docs you'll need to search for the code - I'm sure it exists.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC