To avoid IE 7 and 8 Blocking ActiveX components and display message to unblock it.
Use following registry hack in your application. Add entries to registry as follows.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Ext\Stats\{CLSID OF Component}\iexplore]
"Type"=dword:00000001
"Flags"=dword:00000004
"Count"=dword:00000000
"Time"=hex(3):00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"Blocked"=dword:00000001
Following Registry applicable to IE8.0 though adding it in IE7.0 doesn't give any problem.
Add these to avoid blocking of component for every page which uses it.
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Ext\Stats\{CLSID OF Component}\iexplore\AllowedDomains]
Allowed Domains uses domain address to unblock it for specific domain or by using * you can allow it for every page.
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Ext\Stats\{CLSID OF Component}\iexplore\AllowedDomains\*]
Create registry file as per these and save it as .reg.
No comments:
Post a Comment