Click here to Skip to main content
15,885,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

I want to add a combo box or a drop down in a word document pro grammatically. Also after that I want to set the selected value through code. I want to do this through c#.

can some body please give me proper link. I wan not able to find one .

Thanks in Advance.
Posted
Comments
Praveen Kumar Upadhyay 9-Dec-14 8:02am    
Can you please brief a little more, So we can help you in a better way.
ZurdoDev 9-Dec-14 8:06am    
You can record a macro doing what you want and that will give you a lot of the code. Then just google for c# microsoft word examples.

1 solution

@Praveen Kumar

I have never done this .. so basically I am opening a word doc programmatically(c# code using Interop refernces) writing some text into it. which I am able to achieve.

But now I want to add a combo box to hold a list of values and show one value selected.

@Ryan

Okays I will give it a try, Thanks.
 
Share this answer
 
Comments
BillW33 9-Dec-14 9:53am    
You should not post a comment to a solution or an addition to your question as a "Solution". Either add a comment to a previous solution by pressing the "Have a Question or Comment?" button or update your question by using the "Improve question" button. I did not vote, but I thought you should know why this might be downvoted.

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