tags:

views:

136

answers:

3

Print ms word file (myfile.doc) to get printed from java application....

+2  A: 

This example from the OpenOffice API might be useful.

Bozho
A: 

The Apache POI system ( http://poi.apache.org/ ) is explicitly designed to interface with MS documents.

DJClayworth
Can you expand on how POI would be used to actually print a document? My experience with POI so far has always been that interaction with the Word file format occurs at a pretty low level - not suited to printing...
Kevin Day
A: 

The Jacob library can be used to obtain a COM interface to a Word automation container, and you can print from there (we do this quite a bit in one of our apps). But you have to have Word installed on the machine for this to work - if you are looking for something that can work without having Word installed, you'll have to look elsewhere.

Kevin Day