-->

Word 2010 Templates/Addin/Document passing startin

2019-07-08 10:44发布

问题:

I'm trying to create a word template or addin as a means to enter data into a form. It will be tied to a database through service calls. I'm wondering if there is a way to start this document by passing it an Id for the record it's tied to. I would like to open up the word document from another .NET program passing it the Id so it knows where to get its data. Is this possible? or am I looking at this all wrong?

回答1:

I use Custom Document Properties to store lot of things about the document.

How to: Create and Modify Custom Document Properties

http://msdn.microsoft.com/en-us/library/dhxe2d75.aspx