访问水晶报表提示需要密码,,?

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();

打开页面提示需要输入服务器,数据库名,用户,密码

怎么解决??


有只小跳蛙
浏览 377回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP