0

//大家好,我是stimullsoft的初学者,这是我在运行时更改连接字符串的代码//在stimullsoft 2012中,但它不返回任何东西请帮助我

rpt_nogoresd_bij.Dictionary.Databases.Clear();    
rpt_nogoresd_bij.Dictionary.Databases.Add(new  Stimulsoft.Report.Dictionary.StiSqlDatabase("mashaghel", str_connect ));

rpt_nogoresd_bij.Dictionary.Variables["date"].Value = txt_date.Text;
rpt_nogoresd_bij.Dictionary.Variables["azhozeh"].Value = "220111";
rpt_nogoresd_bij.Dictionary.Variables["tahozeh"].Value = "220623";
rpt_nogoresd_bij.Dictionary.Variables["sal"].Value = "1391";        
rpt_nogoresd_bij.Show();
4

1 回答 1

0

请声明您的变量类型,例如:int - char and ... 并且您尚未保存报告模板。

添加rpt_nogoresd_bij.Save()方法。

于 2014-07-31T07:10:53.290 回答