Login | |
|
 |
Re: Open excel on client side with ASP VBScript - 11/2/2004 2:06:51 AM
|
|
 |
|
| |
wils0n
Posts: 14
Score: 0
Joined: 10/27/2004
From:
Status: offline
|
Here are a few references I found. It doesn't look too easy, but it does look possible. Some of these ideas might work, depending on what you are willing to trade off in ease-of-use. http://support.microsoft.com/kb/q182569/ Usenet Thread Another Usenet Thread And some code from one of those threads: IE "security settings" are stored in the registry under this key: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ and under the appropriate \zones\ subkey in HLKM and HKCU This code was designed for something similar. It should show you the path. you could add a shortcut in IE's right-click menu, or bookmark it Let me know if you want to alter Office security settings as well ;-) 'VB Script to change IE security settings Option Explicit Const MY_COMPUTER_ZONE = 0 Const LOCAL_INTRANET_ZONE = 1 Const TRUSTED_ZONE = 2 Const INTERNET_ZONE = 3 Const RESTRICTED_ZONE = 4 Dim WSHShell Dim a,b,c,i,z Dim reg(1) ' These key names contain the permissions to want to set ' Look in the registry to get the right key names reg(0) = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\" _ & "SO\COOKIE\CookiePersistent\Query\" reg(1) = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\" _ & "SO\COOKIE\CookieSession\Allow\" Set WSHShell = WScript.CreateObject("WScript.Shell") ' looping through the array of keys: For i = LBound(reg) To UBound(reg) ' these tell you what to write: a = WSHShell.RegRead(reg(i) & "RegPath") b = WSHShell.RegRead(reg(i) & "ValueName") c = WSHShell.RegRead(reg(i) & "CheckedValue") ' For z = 0 To 4 ' use a loop here to write to each zone z = INTERNET_ZONE ' write the key WSHShell.RegWrite "HKCU\" & Replace(a, "%s", z) & "\" & b, _ c, "REG_DWORD" ' Next Next ------------------------------------------------------- I have no idea if that code can be repurposed for your app, but that's about all I could find on the topic. Good luck.
|
|
| |
|
|
|
| |
|
|
 |
|
 |
|
|