DataSet ds = new DataSet();。。。。。。 TableLogOnInfo logoninfo = new TableLogOnInfo(); logoninfo.ConnectionInfo.DatabaseName = "GGG"; logoninfo.ConnectionInfo.ServerName = "MYC-Test1"; logoninfo.ConnectionInfo.UserID = "sa"; logoninfo.ConnectionInfo.Password = "123"; ReportDocument rd = new ReportDocument(); rd.Load(Server.MapPath("rptVehicle.rpt")); rd.Database.Tables[0].ApplyLogOnInfo(logoninfo); rd.SetDataSource(ds.Tables["sql"]); CrystalReportViewer1.ReportSource = rd; CrystalReportViewer1.DataBind();打开页面提示需要输入服务器,数据库名,用户,密码怎么解决??
1 回答
- 1 回答
- 0 关注
- 376 浏览
添加回答
举报
0/150
提交
取消