Cannot insert values from people picker with multiple values in Word 2007 using Quick Parts
Hi, I'm using moss2007 and created a new content type. I have added a site column of type People Picker and set 'allow multiple' to 'true'. In the Word document I want to insert the values from this column using a Quick Part (or any other method, but I'm now using this for all other properties). The people picker property, however, is not available in the list of properties to insert. When I set 'allow multiple' to 'false', I can insert the control without any problem. So I'm guessing it has something to do with the multiple values... Can anybody assist me in getting these values visible in the document, if not with default settings, maybe with a macro or something? thanks.
May 21st, 2010 11:25am

I have found some extra info: This piece of code will get the values from the people picker: Dim CopiesTo As String Dim i As Integer For i = 0 To UBound(ActiveDocument.ContentTypeProperties("Copies to").Value) CopiesTo = CopiesTo & ActiveDocument.ContentTypeProperties("Copies to").Value(i + 1) CopiesTo = CopiesTo & ";" i = i + 1 Next i UpdateBookmarkTEST BookmarkToUpdate:="CopiesTo", TextToUse:=CopiesTo The Value is an Array. Each person added occupies two values eg. (0) = 1 and (1) = "person name" I do not know what the number at (0) represents. This works, but now i need to press a button or something. that's why I'd rather have this down with a quickpart, which would automatically update the fields.. So I would still like some info on this. thanks
Free Windows Admin Tool Kit Click here and download it now
May 21st, 2010 1:14pm

Hi willemschwarte, This is by design. It's unfortunate there is no control in Word that supports multiple people. I am afraid these is nothing can be done at SharePoint side. Thanks for your understanding. Lambert Qin TechNet Subscriber Support in forum If you have any feedback on our support, please contact tngfb@microsoft.com Sincerely, Lambert Qin Posting is provided "AS IS" with no warranties, and confers no rights.
May 24th, 2010 8:44am

Hi, this is a follow up for "Cannot insert values from people picker with multiple values in Word 2007 using Quick Parts" thread. I can set a people picker field in de Document Information Panel with: ActiveDocument.ContentTypeProperties("Fieldname").value = val Val in this case is an array like: val(0) = "" val(1) = "logon name" I can for example insert a windows logon name. If I then press the "validate name" button in the document Information panel, the name is resolved. After this, the val(0) is filled with an number, i think its an internal ID, which I do not know in up front. My question is, how can I let de DIP resolve this name, without pressing the button, but through VBA code. If I save the document without resolving, the value is removed. Thanks
Free Windows Admin Tool Kit Click here and download it now
June 9th, 2010 12:36pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics