Winforms reportviewer控件参数 [英] Winforms reportviewer control parameters
问题描述
我一直在尝试将reportviewer控件与本地报告一起使用,但我正在努力弄清楚你是否可以在实际上显示参数网页设计师的工作方式相同。
我设计了报告(rdlc文件),并且我将报告参数设置为可见。 但我没有得到任何参数。 我刚刚收到下面的报告窗口。
这是Windows控件的限制吗? 我可以在我的应用程序中使用webcontrol并显示参数吗?
谢谢
Matt
Application Developer
嗨mamikel。
你可以尝试下面的步骤
用@name_parameter创建程序A
然后创建Crystal报告 B.rpt与程序A的数据集
昏暗 cr as 新 CrystalReport 'CrystalReport B
cr.SetparameterValue(" @ name_parameter" ,textbox1.text)
Hi,
I've been trying to use the reportviewer control with local reports but am struggling to work out how or in fact whether you can show the parameters in the same way the web designer works.
I have designed the report (rdlc file) and I have the report parameters set to visible. But I do not get any paramters showing. I just get the report window below.
Is this a limitation of the Windows control? Could I hoste the webcontrol instead in my application and get the parameters showing?
thanks
Matt
Application Developer解决方案Hi mamikel .
you can try step below
Create procedure A with @name_parameter
Then create Crystal Report B.rpt with dataset from procedure A
Dim cr as New CrystalReport ' CrystalReport B cr.SetparameterValue("@name_parameter",textbox1.text)
这篇关于Winforms reportviewer控件参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文