0

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?

2
  • so, you are adding values to a word template and are wanting them to be stored in SP? Not sure I understand your requirements fully. Can you give more info? thanks,
    – ironman
    Apr 16 '12 at 14:59
  • Sure, I have a document library with custom properties that I have created. There is a content type with a custom document template. This document template has a word document. The word document has fields that are populated using the custom properties from the document library. This works beautifully. I have a requirement now to generate a table using a custom property from the document library. Apr 16 '12 at 18:02
0

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

1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.