TableLogOnInfo logon = new TableLogOnInfo();//不用反复输入密码的问题 解决了......
logon.ConnectionInfo.ServerName = "3382FD92B8C9405";
logon.ConnectionInfo.DatabaseName = "rs";
logon.ConnectionInfo.UserID = "sa";
logon.ConnectionInfo.Password = "123456";
ReportDocument rd = new CrystalReport1();
rd.Database.Tables[0].ApplyLogOnInfo(logon);
crystalReportViewer1.ReportSource = rd;