We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Can Aspose be helpfull in making documents(.doc) from html document

Hi,



My company is on a project which is client/server. Clients uses html editor (which is embedded in a java application). We are providing them templates in .html and after filling it they sends documents back as .html to the server. In the server we have to convert them to .doc documents. We have .doc templates in the server corresponding to .html templates so only insersion in to the respected fields is necessary, but it must be accurate. I want to know whether Aspose is a solution to this problem. Please let me know as early as possible.



With regards,



Manu

Hi,

I have moved the thread to Aspose.Words forum so that they may help you soon.

Thank you.

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for your interest in Aspose.Words. I think there are few ways to achieve what you need using Aspose.Words.

1. You can just convert HTML to DOC. Here is code example:

Document doc = new Document("C:\\Temp\\in.html");

doc.save("C:\\Temp\\out.doc");

But there are limitations if you use such conversion. Please see the following document to learn more about limitations.

http://www.aspose.com/community/files/51/file-format-components/aspose.words/entry108980.aspx

2. You can parse your HTML and extract entered data from it. Then you can use mail merge to insert this data into the Word document. Please see the following link to learn more about mail merge feature.

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/perform-mail-merge.html

Best regards.