我已经有这个问题很长一段时间了 . 我创建了一个存储过程,从过程中返回多个数据表 .

select name,address from table1,
select office,officeaddress from table2

我从项目资源管理器创建一个数据集 . 我添加了一个数据表 . 将其命名并在列中填入从以下过程返回的所有值的名称

name,address,office,officeaddress

我从项目资源管理器创建一个水晶报告,并用数据库专家的表填充它 . 但水晶报告没有显示任何值 .

是否可以显示上述情况的报告?填写报告的代码如下

string s = ConfigurationManager.ConnectionStrings["testConnString"].ConnectionString;
using (SqlConnection conn = new SqlConnection(s))
using (SqlCommand cmd = new SqlCommand("sp_getConfigurationReport", conn))
    {
        cmd.CommandType = CommandType.StoredProcedure;
        cmd.Parameters.Add(new SqlParameter("@cashsafeid", 3));
        conn.Open();
        //SqlDataReader dr = cmd.ExecuteReader();
        dsConfiguration = new DataSet();
        SqlDataAdapter da = new SqlDataAdapter();
        da.SelectCommand = cmd;

        da.Fill(dsConfiguration);

    }
 ReportDocument rDoc = new ReportDocument();
 rDoc.Load(Server.MapPath("~/Report/ConfigurationReport.rpt"));
 rDoc.SetDataSource(dsConfiguration);
 EODReport.ReportSource = rDoc;