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!
this is great article on the subject.
Populating Word 2007 Templates Through Open XML
精彩评论