Using SharePoint label to display document version in Word 2007 doesn't work when moved to another l

Posted by ITManagerWhoCodes on Stack Overflow See other posts from Stack Overflow or by ITManagerWhoCodes
Published on 2010-04-14T06:37:48Z Indexed on 2010/04/14 6:43 UTC
Read the original article Hit count: 844

Filed under:
|
|
|

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 also added this Version quick-part field to the footer of the Word document and then added this document as a document template to my content type, "ContentTypeMain". Now, I can go to my Document Library and I can create a New instance of "ContentTypeMain" with the Version field automatically 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 another copy of the Label quick-part.

It seems like the Quick-Part Label that maps to the Document Library Version is unique to the Document Library.

My application dynamically creates subsites using site definitions and list templates. Thus the document library in each of the subsites are all being created from the same 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.

© Stack Overflow or respective owner

Related posts about sharepoint

Related posts about version