این محیط گزارشمه:
نوشته شده توسط
danialafshari
سلام
مطمئنید متغیر رو در Designer ریپورت ایجاد کردید؟
stiReport1.Load(Environment.CurrentDirectory+@"\Re port.mrt");
stiReport1.Compile();
stiReport1["VarName"] = txtName.Text.Trim();
stiReport1.Show();
این کدای شماست که اینو به من نشون می ده:
stiReport1.Load(@"Report.mrt");
stiReport1.Compile();
stiReport1["qqq"] = "asdfg";
stiReport1.Show();
نوشته شده توسط
Yanehsar
stiReportsAccounting.Load("Report\\priceAccounting .mrt");
stiReportsAccounting.Dictionary.Variables["strTypeAccounting"].Value = cbAccounting.Text;
stiReportsAccounting.Dictionary.Variables["DateIn"].Value = "تست";
stiReportsAccounting.Dictionary.Variables["DateEnd"].Value = "...";
اینم کدای شماست که اینو به من نشون می ده:
stiReport1.Load("Report.mrt");
stiReport1.Dictionary.Variables["qqq"].Value = "qwert";
stiReport1.Show();
کلاً qqq رو پاک نمی کنه.