Geeks With Blogs
Simon's blog
I'd been searching for a long time as to how to get the Sharepoint Library version number as a printable field in a Word document.  Eventually I found this:

Here is a simple method of posting the version number into a word 2007 document using labels...

1. Create a document library and enable versioning (either major or minor) and content types.

2. Add any new metadata fields to the library as required.

3. Add your content types.

4. Go into document library settings and select the first of your content types.

5. Select Information management policies settings from the content type menu.

6. Select define a policy and click ok.

7. Click on the 'Enable Label' Check box

8. DO NOT Check the other two boxes in the Labels section.

9. In the Label Format field, enter the metadata fields in the following format...

Version : {Version}

10. Set the label appearance and click on Refresh.

11. Click OK at the bottom of the page.

The next steps relate to Word 2007....

12. Go back to the library and create a new document using the content type you have modified. The document should open in word

13. IMPORTANT : Save the file as a Word 2007 format now.

14. Select the insert tab

15. Select Quick Parts from the Ribbon menu and hover over document property

16. Select Label from the properties list

17. This should display the metadata defined in your label as a field in your word document. The field will update automatically when you next open the document.

18. Don't forget to save!


Original post can be found here:  http://blogs.msdn.com/joerg_sinemus/archive/2007/01/26/wss-version-number-in-the-word-2003-document.aspx
scroll to the bottom of the page and look at the last post. Posted on Monday, December 15, 2008 9:34 AM Microsoft Office Sharepoint Server 2007 , WSS 3.0 | Back to top


Comments on this post: MOSS Version number into Word 2007

# re: MOSS Version number into Word 2007
Requesting Gravatar...
I tried this and what I get is a blank field in my Word document. Since the Sharepoint version is not a simple integer, it is not clear exact what this method would display. Had anyone actually made this work?
Left by Richard on Feb 11, 2009 7:18 PM

# re: MOSS Version number into Word 2007
Requesting Gravatar...
I got this to work great for documents that are created using the content type, however, I'm still looking for a way to show the version history of an existing document that was uploaded and not created with the content type.
Left by chefemby on Mar 19, 2009 5:08 PM

# re: MOSS Version number into Word 2007
Requesting Gravatar...
Does this work on sharepoint services?

I cannot find "Information Management Policies".

Thanks

Mr T
Left by MrT on Jun 02, 2009 12:39 PM

# re: MOSS Version number into Word 2007
Requesting Gravatar...
I tried this with the result that the string "{_UIVersionString}" is displayed in my Word Document. I did exactly your described steps, the format is 'Version: {Version}', when I click "Refresh", the string "{_UIVersionString}" is displayed. The same holds for when I paste the quick part "Label" into the document.
Left by darkroastjava on Sep 18, 2009 6:55 AM

# re: MOSS Version number into Word 2007
Requesting Gravatar...
"Information Management Policies" only work with MOSS, not with WSS. So this solution is only applicable in an MOSS environment.

Left by Christoph on Feb 24, 2010 5:47 AM

# re: MOSS Version number into Word 2007
Requesting Gravatar...
How can i change the name (label) in word quick parts Ribbon menu?

Please help...
Thanks
Left by Sam on Apr 20, 2010 4:46 AM

# re: MOSS Version number into Word 2007
Requesting Gravatar...
Ok, I followed the steps as outlined but don't see any version number being substituted.
I have:
Version : {Version}

in my Word doc and there are versions 0.1 and 0.2 in Sharepoint. Opening from Sharepoint to edit again shows me the above label and no version value. I would hope to see:
Version : 0.1

Anything that I should look for?

Thanks
Left by Rick on Mar 18, 2011 4:29 PM

Your comment:
 (will show your gravatar)


Copyright © simonh | Powered by: GeeksWithBlogs.net