输入参数值对话框

编程入门 行业动态 更新时间:2024-10-11 13:27:27
本文介绍了输入参数值对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嗨 我有一个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.

更多推荐

输入参数值对话框

本文发布于:2023-11-28 03:52:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1640848.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:对话框   参数

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!