I have a website I'm developing, and I need to allow users to open Microsoft Office 2000 documents within their browsers. They also need to be able to edit and save the documents. To accomplish this, I've set up an FTP server where the files are kept, and granted the users read/write access. Here is the source code I've got:
Set objWord = CreateObject("Word.Applica
objWord.Visible = true
objWord.UserControl = true
Set objExcel = CreateObject("Excel.Applic
objExcel.Visible = true
objExcel.UserControl = true
The links look like this:
<a href="#" onClick="call OpenXLS('ftp://serveripaddress/filename.xls'
<a href="#" onClick="call OpenDOC('ftp://serveripaddress/filename.doc'
The Excel file works just fine. The problem is that, when I try to open the Word document, I get the following error:
Error: 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 am certain that the path and filename is correct; in fact, if I go to Microsoft Word, and File->Open, and type in that same exact path, it will work fine. What boggles my mind is that the webstie works fine for opening Excel files, but it doesn't seem to like Word. Can anyone tell me what I'm doing wrong?