根据文档描述添加参数,必须提示用户输入参数值报表才能显示,我把PromptUser设置成false ,在reporteStart事件里给这个参数赋值,报表无法显示,
select * from t_ams_master where ams_master_id = '<%param:ams_master_id%>'
void mainReport_ReportStart(object sender, EventArgs e)
{
//((ShellSectionReport)sender).Parameters["ams_master_id"].DefaultValue = "21";
((ShellSectionReport)sender).Parameters["ams_master_id"].Type = Parameter.DataType.String;
((ShellSectionReport)sender).Parameters["ams_master_id"].Value = "21";
}
http://www.gcpowertools.com.cn/d ... !Documents/_115.htm |
|