S
Steve Bugden
Hi,
I trying to automate MS Word from a vb.net project.
I would like to be able to open a word document which sits on a web server
using ftp.
I have trie the following code:
Dim MSWord As New Word.Application
Dim WordDoc As New Word.Document
WordDoc =
MSWord.Documents.Open("ftp://ftp10.SomeServerName.net/MyDir/SomeFileName.doc")
MSWord.WindowState = Word.WdWindowState.wdWindowStateNormal
MSWord.Visible = True
I get an error message as follows:
The document name or path is not valid.
Try one or more of the following:
* Check the path to make sure it was typed correctly.
* On the File menu, click Open. Search for the file using this dialog box.
I can open the document manually from Word, so I assume it must also be
possible via automation.
I would be very grateful for any tips, hints, etc.
Also, am I in the best news group for this question?
Best Regards,
Steve.
I trying to automate MS Word from a vb.net project.
I would like to be able to open a word document which sits on a web server
using ftp.
I have trie the following code:
Dim MSWord As New Word.Application
Dim WordDoc As New Word.Document
WordDoc =
MSWord.Documents.Open("ftp://ftp10.SomeServerName.net/MyDir/SomeFileName.doc")
MSWord.WindowState = Word.WdWindowState.wdWindowStateNormal
MSWord.Visible = True
I get an error message as follows:
The document name or path is not valid.
Try one or more of the following:
* Check the path to make sure it was typed correctly.
* On the File menu, click Open. Search for the file using this dialog box.
I can open the document manually from Word, so I assume it must also be
possible via automation.
I would be very grateful for any tips, hints, etc.
Also, am I in the best news group for this question?
Best Regards,
Steve.