Hi
I am at my whits-end with this problem. I can successful bind xml to the main document part, however I cannot seem to be able to get content controls in the header to bind to the xml.
AddCustomXmlPart doesn't seem to exist for Headerpart and if I try to add a CustomXmlPart via hdrpart.AddPart(xmlPart);
I get an Invalid operation exception "The part cannot be added here" and cannot use hdrpart.AddNewPart(); as CustomXmlPart isn't an IFixedContentTypePart.
I have spent the last few days searching for examples on how to bind data to the header but all to no avail. There are plenty of examples on creating new headers, moving headers etc, but nothing on binding CustomXml to the header.
I hope someone can shed some light on this.
Thanks in advance.
Al