Code for adding Content Controls Word 2007 C#

Posted by AProgrammer on Stack Overflow See other posts from Stack Overflow or by AProgrammer
Published on 2009-11-16T14:39:20Z Indexed on 2010/04/23 11:53 UTC
Read the original article Hit count: 321

Filed under:
|
|

Hey all,

I was wondering if anyone has any idea how I can add Content Controls to a Word Document (Office 2007) from the Document Task/Action Pane via C#. The goal is the following:

I want to have categorized information in the Task/Action Pane and have the user fill out the info there. Once they have filled out that information they'll click on a button and it will insert content Controls into the Word Document that has that Data.

The reason I want to use Content Controls is because the data will be bound to a database.

Is this possible? I would like links that do this without WordProcessingML or OpenXML. There has to be a way to do this via server side code and such that doesn't require long blocks of ,, etc.

Thanks!

© Stack Overflow or respective owner

Related posts about word2007

Related posts about contentcontrol