views:

191

answers:

0

I am surfacing the Document Library version of a Word 2007 document by creating a Label ({version}) within the content type of the Document Library and adding it as a Quick-part Label in the Word 2007 document. This works great. The latest version always shows up when I open the Word document.

I then made this Word document the document template to a content type, "ContentTypeMain". Now, I can go to my Document Library and I can create a New instance of "ContentTypeMain" with the Version field always there. This works great as well.

However, if I create another Document Library and add the same Content Type, "ContentTypeMain" to it, the value of the "Version" Quick-part doesn't update or refresh. The only way is to add a new instance of the Quick-part to the Word Document(the name of the Quick-part is Label).

It seems like the Quick-Part field that maps to the Document Library Version is unique to the Document Library. If you move that Word document to another Document Library, the Quick-Part field loses it's scope.

My application dynamically creates subsites using site definitions and list templates. Thus, the document library in each of the subsites are all created from the same SharePoint List Template.

I inspected the XML files under the hood of the Word Document and it does look like there is a GUID attached to the Quick-Part Version field. One approach would be to try and get the Document Libraries to have the same GUID but I don't know if that's even possible or safe.