the HTML format of data in Word

Technical support for Spire.Doc

Moderator: iceblue support

the HTML format of data in Word

Postby james » 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

Re: the HTML format of data in Word

Postby iceblue support » 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: 244
Joined: Tue Dec 21, 2010 2:56 am


Return to Spire.Doc

Who is online

Users browsing this forum: No registered users and 0 guests