R
RikardM
We are currently using dsofile.dll to read and write custom properties on
word documents. When a new document is uploaded to our website we update a
custom property that we could call myVersion which stores that documents
current version number. This custom property is then added as a field to the
document header so when you open the document you can see what version this
document is and this value is then automatically maintained by the server.
How ever, updating the custom property with dsofile.dll doesn’t make the
field in the document header update to show the correct value in myVersion.
To be able to show the correct value the user will have to manually update
the contents of the field by for instance right clicking the field and
clicking [update field].
Making an add-in for Word that you can install on each client doesn’t work
since Word doesn’t run add-ins when you open a word document in embedded mode
(in Internet explorer) using office automation on the server will not work
either since it doesn’t work with our current through put of documents on the
server, Microsoft have also put up some strong reservations against using
office automation in a server environment since it’s not designed for it.
What we wish to do is refresh the field inside the word document and then
resave the document so that the content of the field shows the correct value
when the document is opened.
Thanks in advance
/Rikard
word documents. When a new document is uploaded to our website we update a
custom property that we could call myVersion which stores that documents
current version number. This custom property is then added as a field to the
document header so when you open the document you can see what version this
document is and this value is then automatically maintained by the server.
How ever, updating the custom property with dsofile.dll doesn’t make the
field in the document header update to show the correct value in myVersion.
To be able to show the correct value the user will have to manually update
the contents of the field by for instance right clicking the field and
clicking [update field].
Making an add-in for Word that you can install on each client doesn’t work
since Word doesn’t run add-ins when you open a word document in embedded mode
(in Internet explorer) using office automation on the server will not work
either since it doesn’t work with our current through put of documents on the
server, Microsoft have also put up some strong reservations against using
office automation in a server environment since it’s not designed for it.
What we wish to do is refresh the field inside the word document and then
resave the document so that the content of the field shows the correct value
when the document is opened.
Thanks in advance
/Rikard