Using Office automation in Word 2007, I view the Document Information Panel, showing me properties of a document that resides in a SharePoint location.
Using VS 2008, I interrogate the following in the Immediate Window:
? WordDocument.CustomDocumentProperties(23).Value
"My App Name Here" {String}
String: "My App Name Here"
Then I interogate the name of the property:
? wordDocument.CustomDocumentProperties(23).Name
"Process Name" {String}
When I type into the combobox and change the value to "YYY" and query the value of tghe property:
? WordDocument.CustomDocumentProperties(23).Value
"YYY" {String}
String: "YYY"
However, when I execute the following:
WordDocument.CustomDocumentProperties(23).Value = "New Value"
and requery the value of the property I see that the value was stored:
? WordDocument.CustomDocumentProperties(23).value
"New Value" {String}
String: "New Value"
..but I don't see a corresponding change to the screen.
I do however see that, on Advanced Properties/Custom Tab that a Custom Property by the name of "Process Name" has been recorded with the value "New Value"
There seems to be some kind of one way mapping going on between "server" and "custom" properties, but the really strange part is:
I can update SOME server properties, others I cannot.
I don't know a darn thing about SharePoint, other than as a dumb user. And getting any help from a SharePoint admin in my company is probably a very long shot...
I checked all of Word's Built-in Properties and Custom Properties, I decided that none of them can be used to update the "Process Name" "server" property.
How can I update this stubborn property? Most of the server properties I can update, a few I cannot.
I see some articles referring to using what looks like "SharePoint objects." Do I need to download an SDK just to populate these properties? So far I've used Office automation, because I am running locally on the user's PC and pre-filling documents using the Word object model.
All that is left is to finish populating the last couple of server properties after I copied the doc to a Sharepoint folder.