Crystal报告要求数据库访问登录 [英] Crystal report asks for database access login
本文介绍了Crystal报告要求数据库访问登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
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.UserID = "Admin"
cx.ConnectionInfo.Password = "19922991"
dx.ApplyLogOnInfo(cx)
Next
reports.CrystalReportViewer1.ReportSource = rpt
reports.CrystalReportViewer1.RefreshReport()
reports.ShowDialog()
我尝试了什么:
如何解决错误访问数据库登录水晶报告vb.net
What I have tried:
how to solved error Access database login crystal report vb.net
推荐答案
在整个网络上,这已被问到几百万次。
crystal报告访问数据库登录 - Google搜索 [ ^ ]
This has been asked, literally, a couple million times, all over the web.
crystal reports access database login - Google Search[^]
删除该行;
Remove the line;
reports.CrystalReportsViewer.RefreshReport()
< br $>
亲切的问候
Kind Regards
这篇关于Crystal报告要求数据库访问登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文