I start to work with OpenXML in Word2007. Particularly, with saving of the data entered by the user to Custom XML.
I have download Content Control Toolkit utility. If i create connectivity richtext field to part of customxml, and load .docx in Word2007, then i see plaintext control (not rich text).
Question: How to set relation between custom xml tag and richtext control ?
data-binding rich text controls is not supported. You can try using the Word UI, just run the following VBA in a document containing only 1 content control of type rich text
Dim part as CustomXMLPart
set part = ActiveDocument.CustomXMLParts.Add("<someXml/>")
Hope it helps,
I have tried it, but i had run-time error '6191'. "Data bindings cannot be created for rich text content controls".
I have found note about SetMapping method (http://msdn2.microsoft.com/en-us/library/bb226172.aspx)
"Note: Creating a mapping for a rich-text content control causes a run-time error."
Why data-binding rich text controls isn't supported in Word 2007 ?
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?