shdocvw

Get around running visual studio as administrator in Windows 7 to interact with Internet Explorer

家住魔仙堡 提交于 2019-12-07 11:56:55
问题 I'm using SHDocVw.InternetExplorerClass to scrape a webpage. It works fine in XP, but when I try to run it in windows 7 I get an error: The interface is unknown. (Exception from HRESULT: 0x800706B5) When I run visual studio in administrator mode it works fine, but the published application has to be run in administrator mode too, which isn't acceptable. Is there any way to get around running the application in administrator mode? 回答1: Do you absoltely need to use SHDocVw.InternetExplorerClass

How can I maximize an IE window created by VBA with SHDocVw.InternetExplorer command?

爱⌒轻易说出口 提交于 2019-12-06 04:30:37
As the title says, I'm trying to maximize an internet explorer window that was created using the following command: Set ie = New SHDocVw.InternetExplorer Instead of: Set ie = CreateObject("InternetExplorer.Application") Here's the full code: Sub wpieautologin() Dim ie As SHDocVw.InternetExplorer Dim NOME_EMPRESA, CNPJ, CPF, COD_ACESSO As String Dim Lookup_Range As Range Set ie = New SHDocVw.InternetExplorer ie.Visible = False ie.Navigate "http://www8.receita.fazenda.gov.br/simplesnacional/controleacesso/autentica.aspx?id=6" NOME_EMPRESA = Range("B8").Value Set Lookup_Range = Range("B12:E500")

Get around running visual studio as administrator in Windows 7 to interact with Internet Explorer

柔情痞子 提交于 2019-12-05 21:30:16
I'm using SHDocVw.InternetExplorerClass to scrape a webpage. It works fine in XP, but when I try to run it in windows 7 I get an error: The interface is unknown. (Exception from HRESULT: 0x800706B5) When I run visual studio in administrator mode it works fine, but the published application has to be run in administrator mode too, which isn't acceptable. Is there any way to get around running the application in administrator mode? Do you absoltely need to use SHDocVw.InternetExplorerClass for scraping? Can you just send regular HTTP web requests using System.Net.WebClient or HttpWebRequest ?

How do I open maximized internet explorer?

浪尽此生 提交于 2019-12-05 14:52:16
I have to open maximized internet explorer using C#. I have tried the following: try { var IE = new SHDocVw.InternetExplorer(); object URL = "http://localhost/client.html"; IE.ToolBar = 0; IE.StatusBar = true; IE.MenuBar = true; IE.AddressBar = true; IE.Width = System.Windows.Forms.SystemInformation.VirtualScreen.Width; IE.Height = System.Windows.Forms.SystemInformation.VirtualScreen.Height; IE.Visible = true; IE.Navigate2(ref URL); ieOpened = true; break; } catch (Exception) { } I can open with different sizes, but I couldn't find how to open maximized IE. I have checked the msdn , there is

Any workaround to get text in an iFrame on another domain in a WebBrowser?

a 夏天 提交于 2019-12-05 10:52:48
You will probably first think is not possible because of XSS restrictions. But I'm trying to access this content from an application that hosts a WebBrowser , not from javascript code in a site. I understand is not possible and should not be possible via non hacky means to access this content from javascript because this would be a big security issue. But it makes no sense to have this restriction from an application that hosts a WebBrowser . If I'd like to steel my application user's Facebook information, I could just do a Navigate("facebook.com") and do whatever I want in it. This is an

Using an IE browser with Visual Basic

谁说胖子不能爱 提交于 2019-12-02 03:49:23
问题 Struggling to find a solution to this one. From Visual Basic (VBA in Excel more specifically) I'm able to call an Internet Explorer window by title using AppActivate ("My Page Title - Windows Internet Explorer") And it works great each time. I can open a new window and send a url to it using.. Dim ie As Object Set ie = New InternetExplorer ie.Visible = True ie.Navigate "http://websiteurl" And that also works okay But it opens a new browser each time and I want it to always calls the same

VBA Internet Explorer Automation 'Permission Denied'

泄露秘密 提交于 2019-12-02 01:26:34
Dim IE as New InternetExplorer IE.Visible = True IE.Navigate("http://www.google.com") Do Until IE.Busy = False Loop IE.document.getElementsByTagName("Input")(3).Value = "Search Term" IE.document.Forms(0).Submit <------ This line results in error. The error states Run-time error 70: 'Permission Denied' Please do not suggest code alterations. There is NOTHING wrong with the code. This macro works on 9 out of 10 computers. It is NOT a timing issue (I still get the error even if I step through manually). I know there are other ways to declare the internet explorer object. I have tried using

Using an IE browser with Visual Basic

南笙酒味 提交于 2019-12-02 00:56:05
Struggling to find a solution to this one. From Visual Basic (VBA in Excel more specifically) I'm able to call an Internet Explorer window by title using AppActivate ("My Page Title - Windows Internet Explorer") And it works great each time. I can open a new window and send a url to it using.. Dim ie As Object Set ie = New InternetExplorer ie.Visible = True ie.Navigate "http://websiteurl" And that also works okay But it opens a new browser each time and I want it to always calls the same window. So can i Set ie to equal the same page each time. So instead of Set ie = New InternetExplorer It

Active tab ignored by InternetExplorer COM object for IE 8

99封情书 提交于 2019-12-01 03:10:38
问题 This is web single sign on code that runs on a .net 3.5 winform. The code runs fine for ie6 or ie8 as long as ie8 only has one tab open. The problem is that if the user opens a new tab (tab 2,3,etc.) and navigates to a web site (web form internal in the organization) the below code will be executed but the ie COM automation object will return the HTMLDocument for the first tab (Tab 1) even though tab 2 is the active tab. I can't find any IE tab references in the InternetExplorer or