Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE automation with IE and basic authentication
Message
From
30/06/2014 09:02:19
 
 
To
30/06/2014 08:34:59
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01602885
Message ID:
01602887
Views:
48
I have this so far, but this does not work:
        Dim lcHeader As String = ""
        Dim loInternetExplorer As Object = Nothing
        Dim loString As Framework.StringFunction = New Framework.StringFunction(oApp)

        ' Convert to Base64
        loString.cText = "username:password"
        If Not loString.ConvertToBase64FromText() Then
            MessageBox.Show(loString.cMessage)
        End If

        lcHeader = "Authorization: Basic " + loString.cEncoded + oApp.cCR

        ' Sharepoint
        loInternetExplorer = CreateObject("InternetExplorer.Application")
        loInternetExplorer.Visible = True
        loInternetExplorer.Navigate2("https://www.mysite.com/SitePages/Home.aspx", Nothing, Nothing, lcHeader)
        loInternetExplorer.Top = 1
        loInternetExplorer.Left = 220
        loInternetExplorer.Width = 1340
        loInternetExplorer.Height = 1036
        Do While (loInternetExplorer.Busy)
            System.Threading.Thread.Sleep(100)
        Loop
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform