Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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

What I have tried:

C#
//To Read Control Value
                        string firstname1 = sdtA.SdtContentCell.ElementAt(0).InnerText;

                        // SdtContentDropDownList ddl = new SdtContentDropDownList();

                        //ddl.LastValue.Value;
Posted
Updated 30-Sep-16 4:17am
v2
Comments
Richard MacCutchan 30-Sep-16 5:53am    
Have you checked the documentation?
Balaji5 30-Sep-16 5:57am    
Which Documentation..
Richard MacCutchan 30-Sep-16 6:13am    
Well if you need to ask that question you also need to ask yourself what you are doing in this job.

1 solution

Like richard said, you need to review the documentation for what you are trying to do.

Google needs to become your friend:

DocumentFormat.OpenXml.Wordprocessing.DropDownListSelection - Google Search[^]

DropDownListSelection Class (DocumentFormat.OpenXml.Wordprocessing)[^]

You really need to learn how to research your issues via google/any other resource as you could have likely saved yourself a lot of time rather than waiting for strangers on the internet to give you those same links.

Now, once you start working on this and should you get stuck somewhere...feel free to come back with a clear explanation of your issue and any relevant code samples for us to replicate your problem.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900