The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.



Posted by Joe McGlynn on January 24, 2002 at 12:37 AM

I believe MS-Word will open an html file, and is able to then save it as a .DOC.

One possible solution is to use the MS-Word COM object to open the file and print it programatically. If you have an IIS web server you could probably build an ASP page that will take the word file as part of a multipart form upload, save it and then use the com object to open and print. This could all be triggered from a servlet.

*OR* you could build the code to script the MS-WOrd com object in VB or C++ and access it via JNI.

> I have a html report .I am supposed to export this to a MS Word document and print it .How do I do this ?


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us