Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crystal report connect Access password problem
Message
From
17/12/2010 07:44:02
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Crystal report connect Access password problem
Environment versions
Environment:
VB 9.0
OS:
Windows XP
Database:
Jet/Access Engine
Miscellaneous
Thread ID:
01493063
Message ID:
01493063
Views:
97
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
Next
Reply
Map
View

Click here to load this message in the networking platform