输入参数值对话框 [英] Enter Parameter Values Dialog box

查看:150
本文介绍了输入参数值对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个Windows窗体,在该窗体上,我在窗体代码背后的文件中创建了一个报告..我正在将存储过程名称(SP占用1个参数),参数名n值传递给返回DataTable的方法. >
并且DataTable 中的字段成为报告数据.
一切正常.数据即将到来并正确显示.
但是在报表打开之前,它会显示一个输入参数值对话框".这是SP所需的相同参数.
如果我输入正确的参数值,它将在报告上显示正确的数据.

请帮助我,以隐藏此输入参数值对话框".

在此先感谢您.

Hi
I have a Windows Form on which I create a Report in the form codebehind file.. I''m passing Stored procedure name (SP takes 1 param), para name n value to a method which returns a DataTable.

And Fields from this DataTable become Report data.
Everything works fine. Data is coming and getting displayed right.
But before the Report opens up, it shows an "Enter Parameter Values dialog box". This is the same parameter required by SP.
And if I enter the correct parameter value, it shows the correct data on the report.

Please help me out, in order to hide this "Enter Parameter Values Dialog box".

Thanks in advance.

推荐答案

之所以显示该对话框,是因为您已向报表中添加了一个参数.
您不能隐藏"对话框,但是可以将参数(正确的参数)传递给报表.这将阻止对话框出现.

The dialog is showing because you have added a parameter to the report.
You can''t ''hide'' the dialog, but you can pass a parameter (the correct one) to the report. This will prevent the dialog from appearing.

report.SetParameterValue(ParamNaam, ParamValue)



当然,用正确的参数名称和值替换"paramname"和"paramvalue".



Of course, replace ''paramname'' and ''paramvalue'' with the correct name and value for the parameter.


这篇关于输入参数值对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆