Navigate and Navigate2 of InternetExplorer in Windows Seven
Hi,
With the new version of Windows (Windows 7 Professional and Windows 7 Enterprise), the call to Navigate2 and Navigate function of InternetExplorer object does not function.
The program opens a new IE with POST params. With the new OS, after do the call to Navigate or Navigate2, as soon as the InternetExplorer is shown, it closes. I check that this call only fails when I pass params in POST. The programs runs perfect in other OS (Windows Vista and Windows XP).
Important: Setting the Compatibility of program who launchs this DLL to 'Windows XP ServicePack3', call runs good.
¿Somebody knows why?
The code of my application looks like this:
Public Function AbrirPaginaPortal(URLPortal As String, Page As String, CodClient As String, UserId As String, Password As String, EsperarCierre As String, IEVisible As String, SaveXmlAs As String, Optional ShowWindowConect As String = "", Optional ShowErrors As String = "", Optional Error As String = "") As Boolean
On Error GoTo ErrorAbrirPaginaPortal
Dim strPostData As String
Dim strHeader As String
'Make the Post Data String
strPostData = "UserID=" + Trim(UserId) + "&UserPass=" + Trim(Password) + "&ToPageTask=" + Replace(Trim(Page), "&", "#@#")
Dim absPostData() As Byte
absPostData() = StrConv(strPostData, vbFromUnicode)
'Post the data
If AbrirIE = True Then
If IEEsVisible = "1" Then
oIE.Visible = True
End If
oIE.Navigate2 Trim(URLPortal) + "A3FisLoginEx.aspx?CL=" + CStr(CLng(CodClient)), 0, "", absPostData(), strHeader
End If
Set oIE = Nothing
On Error GoTo 0
Exit Function
ErrorAbrirPaginaPortal:
Set oIE = Nothing
On Error GoTo 0
Exit Function
End Function
Re: Navigate and Navigate2 of InternetExplorer in Windows Seven
I created a new instance (without embed the InternetControl object to form).
Re: Navigate and Navigate2 of InternetExplorer in Windows Seven
Hi Exddds, Can you please tell me in detail what you did to solve this problem. I have similar problem but I am using C#.net. Perhaps your code helps me.
Looking forward for your reply.
Thank You.
Akie.