|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Good day, I desperately need to get the following working.
I have an application that uses vbscripting as it's code developing, The two problems I have is: 1. Creating a link to open the attached file which lies on the server in it's original state. Code:
fileString = "<a href='upload/test.doc' target=''> View File </a>" The problem is this open's the doc in a web page and not in Microsoft Word. I need it to open the files in its state being Word,Excel etc. 2. When opening the file in its original State the file must be readwrite. The user must be able to edit & save the file on the server. so the user can make the changes & just click save. Please help - i need to get it going ![]() |
|
#2
|
|||
|
|||
|
I do this in VBA/Access to open an Excel document. First, have to open the Excel application.
Code:
Private Sub OpenExcel()
Dim oExcel As Excel.Application
Dim oBook As Excel.Workbook
Set oExcel = CreateObject("Excel.Application")
Set oBook = oExcel.Workbooks.Open("\\Fritz\Admin\STWMAT\Central Region Materials\PAVEMENT MANAGEMENT\airports\Report Production\AASP.xlsx")
'the above pathing uses UNC (Universal Naming convention), Fritz is name of server
'code to do something
oExcel.Visible = True
Set oBook = Nothing
Set oExcel = Nothing
End Sub
|
|
#3
|
|||
|
|||
|
Thank You - struggling to get it going in vbscript.
Any other ideas - please? |
|
#4
|
|||
|
|||
|
I binged 'vbscript Excel' and got several relevant hits. Here is one: http://www.computerperformance.co.u...Windows_fso.htm
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > VBScript - Link to file on server, open in original state & readwrite mode |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|