Welcome to OpenXML Developer Sign in | Join | Help

Building Block does not save DataBinding of Content Control.

Last post 09-26-2008, 4:12 PM by tola. 0 replies.
Sort Posts: Previous Next
  •  09-26-2008, 4:12 PM 3740

    Building Block does not save DataBinding of Content Control.

    Hi there,

    I programmatically:
    1- Insert Picture Content Control in a document
    2- Set databinding to the control:
    control.XMLMapping.SetMappingByNode(CustXmlPart.DocumentElement);

    Manually:
    1- Save selection to Quick part Gallery
    2- Close the cueent document
    3- Open a new document
    4- Insert the saved Building Block Entry into document

    As the result, I found that the Building block organizer did not store Custom Xml Part that bind to the content control I created. Since I did not see "\customXml\item1.xml" or "\customXml\itemProps1.xml" was created in the .docx package

    Question: does anyone know how to attach or store Content Control databinding in to Building Block?

    Thank you

    Tola
View as RSS news feed in XML