Free Support Forum - aspose.com

WPF- HTML- .DOT template

Hello,


I created a simple WPF editor with font options,… we have prepared templates in .DOT (Word templates). Is there possible to send in HTML converted text from WPF editor to Word, including our Word template?

Thank you!
Primoz

Hi Primoz,


Thanks for your inquiry. Yes, you can convert HTML to MS Word document by using Aspose.Words.

<span style=“font-size:
10.0pt;font-family:“Courier New”;color:#2B91AF;mso-no-proof:yes”>Document<span style=“font-size:10.0pt;font-family:“Courier New”;mso-no-proof:yes”> doc = new Document(MyDir

  • “in.html”);<o:p></o:p>

doc.Save(MyDir + "out.docx");


Please note that Aspose.Words for .NET is a class library that enables your applications to perform a great range of document processing tasks. Aspose.Words supports DOC, DOCX, RTF, HTML, OpenDocument, PDF, XPS, EPUB and other formats. With Aspose.Words you can generate, modify, convert, render and print documents without utilizing Microsoft Word®. For more information, please go through the documentation below:
http://docs.aspose.com/display/wordsnet/Introducing+Aspose.Words+for+.NET

Basically, Aspose.Words is a DLL (Aspose.Words.dll) which provides you the API for working with a document object model. I suggest you please read following documentation links for your kind reference.
http://www.aspose.com/docs/display/wordsnet/System+Requirements
http://www.aspose.com/docs/display/wordsnet/Install+Aspose.Words+for+.NET
http://www.aspose.com/docs/display/wordsnet/Reference+Aspose.Words+from+a+.NET+Project