aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Print MS Office Documents using Java API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Print MS Office Documents using Java API" Watch "Print MS Office Documents using Java API" New topic
Author

Print MS Office Documents using Java API

Latha Sree
Greenhorn

Joined: Apr 07, 2009
Posts: 17
Hi Friends,

Can anyone please tell me how to print MS Office documents(doc,docx,xls..) using JAVA API..

I tried with Java Print Service API, DocPrintJob..Please suggest me with alternative solution.

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42935
    
  68
The easiest way might be to run OpenOffice in server mode, and use its Java API (UNO) to achieve this. I don't think there's any other open source component that can interpret and print random Office documents.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Print MS Office Documents using Java API