G
Geir Olav Heiene
Hi all,
I am using customdocumentproperties linked to bookmark range in Word as part
of my template designs.
However, linked customdocumentproperties do not update its linked content
before the document is saved and the document reopened. I have observed that
in Word 2003 and Word 2007. I can see others have reported the same, but I
have found no good solutions.
When programmatically opening the and manually pressing OK in the
File|Properties dialog, the wanted update of the links actually do occur.
Problem is that the FileProperties dialog is modal, and I have no means of
pressing the OK button programmatically unless I monitor it from an external
exe in its own process. I have actually done that - but its not a good
solution indeed.
Another "dirty solution" I made is to establish "shadow"
customdocumentproperties entries with e.g. a "_Hot" extension in the name
that updates on BeforeSave event.
The ultimate and only good solution would IMO be to call a currently not
exposed or not documented procedure that actually happens behind the mentiond
OK button in the FileProperties dialog box.
Are there any suggestions?
Could it be that the Word team could help us with provide a such function or
a code snippet to accomplish it in the meantime?
I am using customdocumentproperties linked to bookmark range in Word as part
of my template designs.
However, linked customdocumentproperties do not update its linked content
before the document is saved and the document reopened. I have observed that
in Word 2003 and Word 2007. I can see others have reported the same, but I
have found no good solutions.
When programmatically opening the and manually pressing OK in the
File|Properties dialog, the wanted update of the links actually do occur.
Problem is that the FileProperties dialog is modal, and I have no means of
pressing the OK button programmatically unless I monitor it from an external
exe in its own process. I have actually done that - but its not a good
solution indeed.
Another "dirty solution" I made is to establish "shadow"
customdocumentproperties entries with e.g. a "_Hot" extension in the name
that updates on BeforeSave event.
The ultimate and only good solution would IMO be to call a currently not
exposed or not documented procedure that actually happens behind the mentiond
OK button in the FileProperties dialog box.
Are there any suggestions?
Could it be that the Word team could help us with provide a such function or
a code snippet to accomplish it in the meantime?