Join
Sign in
Search Options
Search Everything
Search Formats
Home
Blog
Resources
Forums
About Open XML
More ...
Home
»
Forums
»
Formats
»
WordprocessingML
»
RichText Content Controls can't be found in OpenXML
RichText Content Controls can't be found in OpenXML
Formats
Discussions about working with different Open XML Formats
Get this RSS feed
Details
1
Reply
0
Subscribers
Posted
over 2 years ago
Options
Subscribe via RSS
Share this
WordprocessingML
RichText Content Controls can't be found in OpenXML
rated by 0 users
This post has
1 Reply |
0
Followers
laflour
25
Posted by
laflour
on
Thu, Feb 4 2010 7:16 AM
rated by 0 users
Post Points: 20
RichText Content Controls can't be found in OpenXML
Hello,
I found one interesting behavior in parsing OpenXML and finding the Content Controls. Everything works fine when we use just "text content control" - it can be found. However, nothing is found when we use "Richtext content control".
Is it a bug?!
I use the following code to find my content controls by tag
List sdtList = mainPart.Document.Descendants()
.Where(s => s.SdtProperties.GetFirstChild().Val.Value == controlName).ToList();
syvers
55
Posted by
syvers
on
Tue, Feb 9 2010 5:06 AM
rated by 0 users
Post Points: 5
Re: RichText Content Controls can't be found in OpenXML
Shouldn't that read
List sdtList = mainPart.Document.Descendants()
.Where(s => s.SdtProperties.GetFirstChild().Val.Value == controlName).ToList();
Hope that is some help.
Page 1 of 1 (2 items)