Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crystal report connect Access password problem
Message
De
17/12/2010 07:44:02
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Crystal report connect Access password problem
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP
Database:
Jet/Access Engine
Divers
Thread ID:
01493063
Message ID:
01493063
Vues:
100
hihi~~~ everyone....

(i use OLEDB connect)
vb connect the access is no problem, but use this code cannot connect the crystal report
still need me entry the  login id , password, it poup up the  databse login...
because Access only set password , no UserID


 Dim myTables As Tables = crReport.Database.Tables
        For Each myTable As CrystalDecisions.CrystalReports.Engine.Table In myTables

            Dim myTableLogonInfo As TableLogOnInfo = myTable.LogOnInfo
            '            For Each Table In reportdoc.Database.Tables
            myTableLogonInfo = myTable.LogOnInfo
            myTableLogonInfo.ConnectionInfo.ServerName = "C:\aaa.mdb"
            myTableLogonInfo.ConnectionInfo.DatabaseName = "Hello"
            myTableLogonInfo.ConnectionInfo.Password = "123456"
            myTable.ApplyLogOnInfo(myTableLogonInfo)
        Next myTable
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform