How to print a Microsoft Word document from a Java web server?

Is there any open or commercial API for printing a Word document from a Java application?

+3
source share
2 answers

To print a * .doc or * .docx file, you need an application that displays the document with maximum accuracy, and only Microsoft Word can do it. While there are APIs that allow you to open a document and extract content, this doesn't seem to be useful to you.

This gives you only one option - COM automation. There are commercial products for this, and may be free. Here is an example .

. Office - . . (.. , , , -).

+1

, . : http://fvue.nl/wiki/ClassExec#Printing

Office .NET ?

- OpenOffice .

"C:\Program Files\OpenOffice.org 2.3\program\soffice.exe" -pt "Lexmark T640 (MS)" "c:\word_documents\AAA_TEST_DMHM_53317_696198.doc"
+1

Source: https://habr.com/ru/post/1750412/


All Articles