views:

43

answers:

3

I have a HTM document generated in Java and I want to convert to MS Word document. If I try open the HTM document with MS Word, show me a pop-up with an advertisement and I don't want that. I want that the document show it directly.

Thanks for your help!

A: 

Apache POI's HWPF will be able to handle writing to the DOC format.

Noel M
A: 

I don't know any open source frameworks which can do this efficiently (There are some like Apache POI but the functionality is limited). But Aspose has a commercial product and it is awesome for your requirement.

Teja Kantamneni
A: 

I'd say attempt this. Now, this is under the assumption that if you were to take the same HTM file, change the extension to DOC and it opens fine. If you're getting the pop-up from opening the file through Microsoft Word and it's HTM, then I don't know. http://www.javadb.com/how-to-rename-a-file-change-file-name

XstreamINsanity