Vb.Net-如何清除水晶报表参数 [英] Vb.Net - How do you clear crystal reports parameters

查看:78
本文介绍了Vb.Net-如何清除水晶报表参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个使用Crystal Reports的应用程序.如果我运行报告,例如报告A,效果很好.然后我尝试运行其他报告,例如报告B具有比报告A更多的参数,我收到一条错误消息参数不正确".然后,我尝试运行报表A并得到相同的错误消息.要运行其他报告,我必须先退出应用程序,然后再返回.

问题是,如何清除以前的水晶报表以运行另一个?
我应该使用哪种语法,例如Close.

有任何想法吗?

Hi,

I have an application that uses Crystal Reports. If I run a report e.g. Report A, works fine. Then I try running a different report e.g. Report B that has more parameters than Report A, I get an error message "The parameter is incorrect". I then try running Report A and get the same error message. To run a different report I have to come out of the application and then go back in.

The question is, How do I clear the previous crystal report to run another?

What syntax should I use e.g Close.

Any ideas?

推荐答案



如果有帮助,请尝试此操作.


右键单击Crystal Report的正文
然后转到:

设计->默认设置..->报告

选中复选框

在加载报告时丢弃保存的数据.

单击确定,然后保存报告.

请记住,如果有帮助,请将其标记为答案;如果没有帮助,则将其取消标记.



问候,

Algem
Hi,

Try this if could help.


Right click the body of your Crystal Report
then goto:

Design -> Default Settings.. ->Reporting

Check the checkbox

Discard Saved Data When Loading Reports.

Click Ok then Save the report.

Please remember to mark the replies as answers if they help and unmark them if they provide no help.



Regards,

Algem


感谢您的所有解决方案.

报告完成后,我错过了一小段代码.

parameterfields.Clear()

添加此行将清除参数.
Thanks for all your solutions.

I was missing one wee bit of code once the report was finished.

parameterfields.Clear()

Adding this line cleared the parameters.


这篇关于Vb.Net-如何清除水晶报表参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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