| Promotion of custom document properties (Word 2007 / MOSS) |
|
 |
|
 |
|
 |
|
 |
Group: microsoft.public.sharepoint.development_and_programming · Group Profile
Author: BartVBartV Date: Sep 14, 2007 13:02
Hi
I have a seemingly basic question concerning a VSTO add in that we are
developing
for Word 2007.
During the creation of our Word document (based on a template hosted in
MOSS), we add a couple of custom document properties (GUID's that should be
kept away from the GUI if possible).
I have done some reading about MOSS and custom document properties, and most
articles and blogs I found discuss the topic of "document property
promotion". This feature of MOSS (and WSS) should "promote" your custom
document properties to columns data in your Sharepoint database (as far as
these columns exist and have corresponding data types).
This feature seems to be working flawlessly when I upload a docx file to
MOSS. If however I create the document, fill the custom document properties,
and save the document straight in my Sharepoint document library, does
Sharepoint not invoke the behaviour I'm expecting.
Instead of this, Word 2007 shows a neat "Document properties - server" box
above my document, containg all necessary columns. All my fields are sitting
there... empty. I tried to address these fields from whithin VSTO. I can
address custom and system document properties as you would expect, but the
server side document properties are not exposed in the document's attributes.
I'm a bit confused now about what is the best solution to save my Word
document in MOSS, passing a set of properties to MOSS to be used to fill out
the document library's columns for the document.
Thanks for your suggestions!
|