Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot load more than two IE instances
Message
De
25/04/2015 15:45:05
Thomas Ganss (En ligne)
Main Trend
Frankfurt, Allemagne
 
 
À
25/04/2015 15:28:50
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01611875
Message ID:
01619135
Vues:
18
Well, asking for specific interfaces was one of the tricks to work around IE mangling the HTML, needed for the early versions, and makes sense from the errror you mentioned. But in your first code snippet nothing was done at document level ? Or left out ?


>I adjusted for this to resolve the issue.
>
>
>        Dim loHTMLDocument As mshtml.HTMLDocument = Nothing
>        Dim loInternetExplorer As SHDocVw.InternetExplorer = Nothing
>
>        loInternetExplorer = New SHDocVw.InternetExplorer
>        loInternetExplorer.Visible = True
>        loInternetExplorer.Navigate("MuUrl")
>        apiShowWindow(loInternetExplorer.HWND, SW_MAXIMIZE)
>        Do While (loInternetExplorer.Busy)
>            System.Threading.Thread.Sleep(100)
>        Loop
>        loHTMLDocument = loInternetExplorer.Document
>        loHTMLDocument.getElementById("Username").Value = "MyUsername"
>        loHTMLDocument.getElementById("Password").Value = "MyPassword"
>        loHTMLDocument.getElementById("Form1").submit()
>
>
>
>For now, it seems I have to get mshtml.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform