I am no expert but I do not think that it is possible to print a Word document 
using POI. As far as I am aware, the API offers the ability to create or modify 
documents not print them; of course, I could be wrong.

Your best bet would be to use Java in my opinion. Off of the top of my head, I 
cannot remember the name of the class but there is one in the API itself that 
will use the registered application to handle - and that includes printing as 
far as I am aware - a particular type of file. As Word is likely to be the 
registered application for handling a .doc file then it should be easy to 
create a class of your own to accomplish this task. If I have the time, I will 
see if I can find an example I saw in a book and post that, if not, I will look 
up the name of that Sun class.

Moley Harey <[EMAIL PROTECTED]> wrote: Hi,

I am developing a Java Struts application that prints a copy of a given MS
Word file stored locally.
I have read POI is the best choice to do this but I have downloaded the
binary POI 3.0.1and cannot find clear examples for printing Word documents
using HWPF API...

Does anybody tried the same?
Any suggestion?

Thanks in advance!


       
---------------------------------
Moody friends. Drama queens. Your life? Nope! - their life, your story.
 Play Sims Stories at Yahoo! Games. 

Reply via email to