Are there any open source or commercial API available to print word document from Java application?
Are there any open source or commercial API available to print word document from
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In order to print a *.doc or *.docx file, you need an application that renders the document with max fidelity, and only Microsoft Word can do that. While there are APIs that let you open the document and extract content, it does not seem this is helpful to you.
This leaves you with only one option – COM automation. There are commercial products for this, there may be free ones too. Here is an example.
A warning: Office automation on a Web server has traditionally been a cumbersome thing to do. It is resource-intensive and unstable. I would try to design around it (i.e. see if you can change the document format, or they way it is created, or the business process).