是否有可能一些数据添加到Word文档?有可能、文档、数据、Word

2023-09-02 01:51:11 作者:当笑谈

是否有可能增加(直通的MS Word对象模型?或编辑文件)一些自定义的数据(另外一个文件也许?)

Is it possible to add (thru the MS Word object model? or by editing file) some custom data (another file maybe?)

会开幕后的数据preserved,更改和保存文档在MS Word?

Will be that data preserved after opening, changing and saving document in MS Word ?

(我需要把一些跟踪数据的docx在一些报表导出,自定义数据将再次导入时使用)

(I need to put some tracking data in docx during some report export, custom data will be used again during import)

推荐答案

感谢您的所有答复。 我用自定义属性的一些用户ID数据添加到生成的文件,它足以跟踪文件,并可以在稍后将其导入。

Thank you for all responses. I used custom properties to add some UserID data to generated documents, it's enough to 'trace' document and be able to import it later.

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