Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Thu Jan 20, 2011 8:19 am

Hello,
How to write data in HTML format into Word with Spire.DOC directly?
THANKS!

james
 
Posts: 8
Joined: Tue Dec 21, 2010 9:29 am

Thu Jan 20, 2011 9:13 am

Thank you for your inquiry!
You can simply use paragraph.AppendHTML() method to write text of HTML format into word document. You may append the text like "<b>Spire.Doc</b>" as:
paragraph.AppendHTML("<b>Spire.Doc</b>")
When you launch it, it will appear the text "Spire.Doc" in bold.
e-iceblue support
User avatar

iceblue support
 
Posts: 240
Joined: Tue Dec 21, 2010 2:56 am

Return to Spire.Doc