If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Open office file in office from browser link

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-19-09, 08:50
plsh plsh is offline
Registered User
 
Join Date: Nov 2004
Posts: 253
Open office file in office from browser link

Good day,

I have a intranet page which displays multiple files that users can open. I need the files to open in the office application it needs to, for example Excel files must open in Excel. I have code that works:

<SCRIPT LANGUAGE=VBScript>
Dim objExcel
Sub OpenEXCELFile(sFile)
Call OpenWorkbook(sFile)
End Sub
Sub OpenWorkbook(strLocation)
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
objExcel.Workbooks.Open strLocation
objExcel.UserControl = True
End Sub
</SCRIPT>

The problem with this is I need to change the Local Intranet secruity settings on each PC for the code to work properly. Does anyone know another way of opening a file in its application or otherwise how to programmatically change the local intranet security settings to LOW?

Thanks
Reply With Quote
  #2 (permalink)  
Old 05-21-09, 12:31
Ax238 Ax238 is offline
Registered User
 
Join Date: May 2009
Posts: 257
I think you may be making it more complicated than it truly is. You should be able to just set them as links similar to what you would with other documents. For example:
HTML Code:
<a href="file:///I|/Public/TestForm.xls">Test Form</a>
Ax
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On