Iran58
سه شنبه 18 اسفند 1394, 02:41 صبح
سلام
من کد زیر را نوشته ام
private void button1_Click(object sender, EventArgs e)
{
using (var db=new DataClasses1DataContext())
{
stiReport1.RegData("db",db.test1s.ToArray());
stiReport1.RegData("db1", db.test2s.ToArray());
stiReport1.Show();
}
}
و در استیمول هم دوتا دیتا سورس تعریف کرده ام که با هم رابطه دارند در استیمول سافت اما هنگام اجرا
ارور زیر ظاهر میشود
Parent Data Source 'DataSource1' and Child Data Source 'DataSource2' is not located in one DataSet and can't be used in relation 'rela'! You can use property CacheAllData of report to cache this Data Source to one DataSet.
برای حل مشکل چکاری باید انجام بدهم
من کد زیر را نوشته ام
private void button1_Click(object sender, EventArgs e)
{
using (var db=new DataClasses1DataContext())
{
stiReport1.RegData("db",db.test1s.ToArray());
stiReport1.RegData("db1", db.test2s.ToArray());
stiReport1.Show();
}
}
و در استیمول هم دوتا دیتا سورس تعریف کرده ام که با هم رابطه دارند در استیمول سافت اما هنگام اجرا
ارور زیر ظاهر میشود
Parent Data Source 'DataSource1' and Child Data Source 'DataSource2' is not located in one DataSet and can't be used in relation 'rela'! You can use property CacheAllData of report to cache this Data Source to one DataSet.
برای حل مشکل چکاری باید انجام بدهم