Results 1 to 3 of 3

Thread: Navigate and Navigate2 of InternetExplorer in Windows Seven

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2010
    Posts
    2

    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

  2. #2

    Thread Starter
    New Member
    Join Date
    Mar 2010
    Posts
    2

    Re: Navigate and Navigate2 of InternetExplorer in Windows Seven

    I created a new instance (without embed the InternetControl object to form).

  3. #3
    New Member
    Join Date
    Oct 2010
    Posts
    1

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width