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();
打开页面提示需要输入服务器,数据库名,用户,密码
怎么解决??