Join
Sign in
Search Options
Search Everything
Search Formats
Home
Blog
Resources
Forums
About Open XML
More ...
Home
»
Forums
»
Formats
»
WordprocessingML
»
Binding CustomXml to Headerpart
Binding CustomXml to Headerpart
Formats
Discussions about working with different Open XML Formats
Get this RSS feed
Details
0
Replies
1
Subscriber
Posted
over 2 years ago
Options
Subscribe via RSS
Share this
WordprocessingML
Binding CustomXml to Headerpart
rated by 0 users
This post has
0 Replies |
1
Follower
EzyAl
5
Posted by
EzyAl
on
Tue, Mar 2 2010 10:02 PM
rated by 0 users
Post Points: 5
Binding CustomXml to Headerpart
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
Page 1 of 1 (1 items)