You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by "Rocha, Joaquim Fernando" <jr...@indra.pt> on 2005/12/06 13:55:18 UTC
Direct Link to a resource
Hi,
Is it possible to access a file via a link in a webpage?
Currently I'm executing a script that opens a file in excel:
<SCRIPT LANGUAGE=3DVBScript>
Dim objExcel
Sub Btn1_onclick()
call OpenWorkbook("http://localhost:9090/webdav/path/file.xls/")
End Sub
Sub OpenWorkbook(strLocation)
Set objExcel =3D CreateObject("Excel.Application")
objExcel.Visible =3D true
objExcel.Workbooks.Open strLocation
objExcel.UserControl =3D true
End Sub
</SCRIPT>
However this does not execute the Lock and the file is opened as read
only.
Can anyone help?
RE: Direct Link to a resource
Posted by Miguel Figueiredo <mf...@maisis.pt>.
Bom dia,
I don't believe it's possible to use MS Office webdav features unless you
are using them through MS WebFolders interface. It means the results you are
having would be the ones I would expect when opening a file from the IE, or
opening them through an office application.
Nevertheless, there is a workaround I managed to store for a (maybe) future
use, that would transform an URL into a webfolders link. Found these
snippets (as attachment) in the slide users mailing list, dont remember who
delivered them, but all credits are due to him.
Espero k ajude,
Miguel Figueiredo
-----Original Message-----
From: Rocha, Joaquim Fernando [mailto:jrocha@indra.pt]
Sent: terça-feira, 6 de Dezembro de 2005 12:55
To: slide-user@jakarta.apache.org
Subject: Direct Link to a resource
Hi,
Is it possible to access a file via a link in a webpage?
Currently I'm executing a script that opens a file in excel:
<SCRIPT LANGUAGE=3DVBScript>
Dim objExcel
Sub Btn1_onclick()
call OpenWorkbook("http://localhost:9090/webdav/path/file.xls/")
End Sub
Sub OpenWorkbook(strLocation)
Set objExcel =3D CreateObject("Excel.Application")
objExcel.Visible =3D true
objExcel.Workbooks.Open strLocation
objExcel.UserControl =3D true
End Sub
</SCRIPT>
However this does not execute the Lock and the file is opened as read
only.
Can anyone help?