开发者

Content controls in Word Document 2010

Hi I have a rich text control on the word document. I am using OpenXML to find the content control and set the data. Now i am setting some html markup to this rich content control. I was expec开发者_高级运维ting to see some styling, instead i see the markup rendered as plain text.

Help needed


You can't simply put html in a richtext content control and have it do something. OpenXMl styling is not HTML but rather XML as the name implies. Check out these links:

How do you change the content of a content control in Word 2007 with OpenXml SDK 2.0?

http://msdn.microsoft.com/en-us/library/documentformat.openxml.wordprocessing.runstyle.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜