I am successfully using document property promotion and demotion in a current project. There is a document library where the properties are used to fill out a templated Word document. This is using Sharepoint 2010.

I have a requirement to take a single document property that stores a string that contains tabular data and the format really doesn't matter. Then I have to fill out a word table using that document property. Basically, we are using other properties to fill in simple labels (mailing, data, etc) but we want to use properties to fill out Word tables.

Any ideas?

有帮助吗?

解决方案

I'd create an event receiver looking for changes in the field and then applying the changes to the document using Open XML SDK

其他提示

If the custom property that you want to put into a word table has (or could have) separators for each "table row", then you can write a simple word macro in vba to parse the custom property into your table.

许可以下: CC-BY-SA归因
scroll top