Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files from any .NET platform (C#, VB.NET, ASP.NET, .NET Core) and Java applications (J2SE and J2EE) with fast and high quality performance.

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