سلام
من یک گزارش خیلی ساده توی asp.net ایجاد کردم و اون رو وصل کردن به منبع داده ولی توی نتیجه گزارش فقط یک سطر(سطر اول)نمایش داده میشه.مشکلم چیه؟چیکار باید کنم؟؟؟؟؟؟؟
SqlCommand cm = new DAL.CommandBuilder().Create("select * from Users");
cm.CommandType = CommandType.Text;
DataSet ds = new DataSet("ds");
try
{
DataTable dt = new DataTable("dt");
SqlDataAdapter adapter = new SqlDataAdapter(cm);
adapter.Fill(dt);
ds.Tables.Add(dt);
StiReport report = stiWebReport1.GetReport();
report.Load( "c:\\r1.mrt");
report.Dictionary.Databases.Clear();
report.Dictionary.DataSources.Clear();
report.Dictionary.Relations.Clear();
report.RegData("ds", ds);
report.Dictionary.Synchronize();
StiWebViewer1.Report = report;
}
catch (Exception)
{
throw;
}