如何在Xtra报告中传递参数 [英] How to pass parameter in Xtra Report
问题描述
我在Xtra报告上创建了。还要添加一个参数。它正在工作,但当我尝试从表格运行然后什么也没有。
代码在这里
它是按钮Click事件
昏暗的报告为新的FeeReceipt
report.parameter1.value = 1
report.parameter1.visible = False
使用reporttool作为新ReportPrintTool(报告)
reporttool.ShowRibbonPreviewDialog()
结束使用
当我点击按钮
打印预览对话出现但没有数据...
如果我输入这个
report.parameter1.visible = true
那么
打印预览对话出现参数选项...如果我选择参数并点击提交..它有效..
但是我无法从表格中传递参数....
please帮助.....
I have created on Xtra Report. Also add one parameter. It is working but when I try to run from a form then gives nothing.
Code is here
It is button Click event
dim report as new FeeReceipt
report.parameter1.value=1
report.parameter1.visible=False
Using reporttool as New ReportPrintTool(report)
reporttool.ShowRibbonPreviewDialog()
End Using
When I click on button
Print Preview Dialogue appears but no data is there...
if I type this
report.parameter1.visible=true
then
Print Preview Dialogue appears with parameter option... If I select parameter and click submit.. It works..
But I am unable to pass parameter from form....
please help.....
推荐答案
查看这个有很多答案的帖子
将参数从用户输入传递到XtraReport显示 [ ^ ]
及其文档
创建参数并传递其值 [ ^ ]
仅供参考,请联系供应商网站(devexpress)以获得快速回复
Check this thread which has many answers
Passing parameter from user input to XtraReport display[^]
and their documentation
Create Parameters and Pass Their Values[^]
FYI, always contact the vendor site(devexpress) for quick responses
其实问题是:
我在整数中创建参数,我在字符串中传递参数....
感谢您的帮助....
我正在跑......
Actually problem was this:
I have create parameter in integer and I was passing parameter in string....
Thanks for help....
I is running....
这篇关于如何在Xtra报告中传递参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!