J
joelfinkle
I'm having a problem with using the OrganizerCopy method ability to copy
styles from from one document to another, when the destination document is
opened off a SharePoint server.
The problem is that Word lies.
When you ask Word what file is open (ActiveDocument.FullName), it says
http://moss.mycompany.com/sites/mysite/Project Documents/1/GTest.doc
but if you record a macro that copies styles using Word's Organizer function
the file it's working on is labeled
C:\Documents and Settings\username\Local Settings\Temporary Internet
Files\Content.MSO\8405E896.doc
which is the temporary file that Word uses to work on the web-based document.
This is unpleasant, to say the least.
Is there any method or property that will tell me the "real" (cached)
location of the SharePoint document that the recorded macro uses? Having the
code record a macro then parsing it out of the recorded macro is not a
reasonable solution.
notes:
1) the document I'm copying from is not a SharePoint doc, but that shouldn't
matter
2) Using ActiveDocument.Name doesn't help either
styles from from one document to another, when the destination document is
opened off a SharePoint server.
The problem is that Word lies.
When you ask Word what file is open (ActiveDocument.FullName), it says
http://moss.mycompany.com/sites/mysite/Project Documents/1/GTest.doc
but if you record a macro that copies styles using Word's Organizer function
the file it's working on is labeled
C:\Documents and Settings\username\Local Settings\Temporary Internet
Files\Content.MSO\8405E896.doc
which is the temporary file that Word uses to work on the web-based document.
This is unpleasant, to say the least.
Is there any method or property that will tell me the "real" (cached)
location of the SharePoint document that the recorded macro uses? Having the
code record a macro then parsing it out of the recorded macro is not a
reasonable solution.
notes:
1) the document I'm copying from is not a SharePoint doc, but that shouldn't
matter
2) Using ActiveDocument.Name doesn't help either