I know how to open a document from the web like so.
My problem is I need a way to use this document in a method call that needs the filename in the form of a string.VB Code:
Set doc1 = objWord.Documents.Open("http://my.site.com/path/to.doc")
Of course, the first thing I tried was putting in the entire URL as a string, but it doesn't seem to like the 'http://' reference.
I also tried referencing the document object that I already opened. If I use 'doc1.FullName', it throws an error saying, "The document name or path is not valid". Is there a way to use the object that has already been opened? Maybe point to whereever the temporary file is being stored?
Any help would be greatly appreciated.
Chris
FYI. I'm trying to use either Word's '.Compare' or '.Merge' method to difference 2 documents over the web without saving them locally.




Reply With Quote