Question

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?

Was it helpful?

Solution

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

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top