Dim rpt As New stage1
rpt.Load("stage1.rpt")
Dim dx As CrystalDecisions.CrystalReports.Engine.Table
Dim cx As CrystalDecisions.Shared.TableLogOnInfo
For Each dx In rpt.Database.Tables
cx = dx.LogOnInfo
cx.ConnectionInfo.DatabaseName = Application.StartupPath & "\studentdb.accdb"
cx.ConnectionInfo.Password = "19922991"
dx.ApplyLogOnInfo(cx)
Next
reports.CrystalReportViewer1.ReportSource = rpt
reports.CrystalReportViewer1.RefreshReport()
reports.ShowDialog()][1]
如何解决错误访问数据库登录水晶报告vb.net?