How to Select Drop Down List in word document us Open XML Word document in .net

Home Forums Open-Xml-Sdk How to Select Drop Down List in word document us Open XML Word document in .net

This topic contains 12 replies, has 12 voices, and was last updated by  peterrparkerr01 6 years, 7 months ago.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #3493

    sharif
    Participant

    I tried all my best but can’t figure out how to select a value or item form drop down list in word document using Open XML Word document in .NET.
    for Text replace i am using the following code.
    using (StreamReader sr = new StreamReader(wordDoc.MainDocumentPart.GetStream()))
    {
    docText = sr.ReadToEnd();
    }
    Regex regexText = new Regex(“My text”);
    docText = regexText.Replace(docText, “Hi Everyone!”);

    But I can’t figure out how to select a value or item form drop down list.

    #3512

    Eric White
    Keymaster

    Hi,

    Sorry, I am not fully clear on your scenario. What exactly are you trying to do? Maybe you can state the problem in ‘business terms’ or ‘functionality’.

    Best, Eric

    #3514

    sharif
    Participant

    Hi Eric,

    I am trying to create a word document from a template. The Input data is coming from a webform. In the web form I have got a a dropdown list .lets say the list has the following values for Gender

    Please Select
    Male
    Female
    Unknown

    My word document template has the same list as a dropdown list. Based on the user input how will i be able to access the dropdown list in the word template and set its value to what the user has chosen in the web form.

    How do i access the DropdownList that exist in the word document and change its selection.

    Thanks

    #3856

    balajikarpurapu
    Participant

    Hi Sharif, did you find solution to set drop down list value in word document with Open XML, c#

    #4208

    RobertWet
    Participant

    Just say – Hallo! For all users of this wonderfull forum!

    #4245

    Nickhaley
    Participant

    We are the leading third party yahoo customer service phone number 24/7 toll free 1844-631-2188 for fixing your yahoo email problems. Our yahoo yahoo technical experts provide you the best Support. View More: https://absolutesoftech.com/yahoo-email-tech-support.html

    #4952

    johnkeddy
    Participant

    Hi Eric,

    We are an independently working AVG technical customer support provider. Available 24×7 toll free 1800-247-9134 for fixing your AVG issues such as installation or removal of the software, virus and malware, upgrades and updates of software, optimization of software. For more: http://www.avg-tech-support.com

    #5393

    ialexatkinson
    Participant

    Kaspersky Support Number is an independent tech service provider. Call Kaspersky toll free number 1 800 247 9134 for any assistance. Kaspersky support number offers quick Kaspersky Antivirus support through highly experienced and certified technicians as we understand the importance of your business/work. Our skilled professionals are available 24×7 to fix your Kaspersky problems. For more details: http://www.kaspersky-support-number.com

    #7037

    binjonathon
    Participant

    For any help regarding McAfee Antivirus you can directly call on McAfee Antivirus Toll Free Number 1800-247-9134 to get instant solutions for your problem in seconds. We will provide you complete satisfaction to your worries. http://www.mcafeetechsupportnumber.com/mcafee-antivirus-support-phone-number.php

    #7112

    jorgebutler13
    Participant

    Hi Eric,

    We are an independently working Norton technical customer support provider. Available 24×7 toll free +1-888-583-4008 for fixing your Norton issues such as installation or removal of the software, virus and malware, upgrades and updates of software, optimization of software. For more: https://www.nortonsupport247.com/service/

    #7120

    koertgechris
    Participant

    We are the leading third party AVG customer support number 24/7 toll free 1888-583-4008 for fixing your Avg problems. Our AVG technical experts provide you the best Support. View More: http://www.avgcustomernumber.com

    #7144

    ravali
    Participant

    kingroot
    kingroot app
    kingroot apk
    king root
    Kingroot download for one click root any Android device. Latest Kingroot apk 5.3.0 is available for direct download on Android smartphones

    #7255

    peterrparkerr01
    Participant

    Call email support number is covered with AOL, Hotmail, Gmail, Yahoo, AT&T, Comcast Email Support.
    AOL Support Number
    AT&T Support Number
    Comcast Support Number
    Gmail Support Number
    Hotmail Support Number
    Yahoo Support Number

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

You must be logged in to reply to this topic.