protected void btnsave_Click(object sender, EventArgs e)
{
StiSqlSource DS1 = new StiSqlSource("Connection", "DS1", "DS1", "SELECT * FROM DS1", true, false);
string path = "D:\\" + "Report.mrt"; ;
// StiSqlSource DS1 = new StiSqlSource();
StiReport stireport = new StiReport();
stireport.Load(path);
// DataSet ds = new DataSet();
DataTable table = GetTable();
// ds.Tables.Add(table);
stireport.Compile();
//stireport.RegData("Test", ds);
DS1.GetDataTable(table);
stireport.Dictionary.DataSources.Add(DS1);
stireport.Render();
StiWebViewer1.Report = stireport;

}


static DataTable GetTable()
{

DataTable table = new DataTable();
table.Columns.Add("radif", typeof(int));
table.Columns.Add("name", typeof(string));
table.Columns.Add("city", typeof(string));
table.Columns.Add("Date", typeof(DateTime));


table.Rows.Add(1, "elnaz", "tehran", DateTime.Now);
table.Rows.Add(2, "elham", "ghom", DateTime.Now);
table.Rows.Add(3, "elshan", "esfehan", DateTime.Now);
table.Rows.Add(4, "nima", "amol", DateTime.Now);
table.Rows.Add(5, "pouya", "babol", DateTime.Now);
return table;
}
دوست عزیز من یه datatable ایجاد کردم . هم چنین یه report در حالت designer و لودش میکنم
و میخوام توی viewer این datatable رو ببینم اما نشون نمیده یه مشکلی این وط هست میشه راهنماییم کنید!!!