rdlc 本地报表处理间出错
SqlConnectionconn=newSqlConnection("server=.;uid=sa;pwd=sasa;database=usertest");&nbs...
SqlConnection conn = new SqlConnection("server=.;uid=sa;pwd=sasa;database=usertest"); SqlDataAdapter da = new SqlDataAdapter("select id,username,userpwd from users", conn); DataSet ds = new DataSet(); da.Fill(ds); DataTable dt = ds.Tables[0]; this.reportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Local; this.reportViewer1.LocalReport.ReportPath = @"TestR.rdlc"; this.reportViewer1.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("TestDataSet",dt)); this.reportViewer1.RefreshReport(); 这是写的代码 如题,谢谢~
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询