SdtContentDropDownList, Open XML, C#

Home Forums WordprocessingML SdtContentDropDownList, Open XML, C#

This topic contains 2 replies, has 3 voices, and was last updated by  Eric White 8 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3855

    balajikarpurapu
    Participant

    I have the requirement to read user selected value from SdtContentDropDownList field from .docx using Open XML, C# and also can you please tell me, how can we use DocumentFormat.OpenXml.Wordprocessing.DropDownListSelection in c#, OpenXMl

    #3862

    vgurunathaprasad
    Participant

    element.InnerText

    will work

    #3871

    Eric White
    Keymaster

    Hi,

    Yes, element.InnerText will work, so long as you don’t have tracked revisions, in which case it will not.

    Also, frankly, I do not use the strongly typed classes in the Open XML SDK. Instead, as you can see in Open-Xml-PowerTools, I always use LINQ to XML, which is the best XML programming API ever invented, IMO.

    In general, with these types of issues, you need to understand the markup in depth, and you need to understand the tools. Please watch screen-cast #13 in the following series:

    Introduction to Open XML

    And of course, you may want to watch others in that series as well.

    Best, Eric

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.