Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE automation with IE and basic authentication
Message
De
30/06/2014 09:02:19
 
 
À
30/06/2014 08:34:59
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:
01602885
Message ID:
01602887
Vues:
47
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform