Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to print different type of document types in java ?

 
v venkat
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi , I am trying to print different type of documents in java, types can be pdf , word, gif, excel, rtf, ....

I am trying to use apache poi to extract word document and then want to print using the extract ... since the DocPrintJob type expects a DOC type as input, how do we convert word extract into DOC type required by DocPrintJob.

my objective is to able to send word document to printer .... i tried javax printer and it does not work ...

please suggest.

Sur
 
v venkat
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i came to know that apache poi can only be used to extract doc type but cant be used for printing, any other suggestions as how we can send word / excel document to printer from java program.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic