Reuse only some parameters on Crystal Reports refresh?

不羁的心 提交于 2019-12-23 10:06:16

问题


I have a Crystal Reports which takes 2 parameters. One of these is set automatically by the C# app that runs the report, but the other is set by the user. I would like to make it so that when the user refreshes the report, only the parameter that was entered by the user is prompted for.

I'm aware of the ReuseParameterValuesOnRefresh property, but this make it so that ALL parameters are reused. I have also tried appending the refreshreports method, but this doesn't seem to work. When I look at the viewer's Refresh() method's definition, all I get is an abstract class with undefined methods, so I'm not sure where to look.

Has anyone dealt with this sort of issue before?


回答1:


You can't do a partial refresh via Crystal. You'll need to build your own parameter window and set them yourself, and display your prompt on the refresh.

One simple work-around that you may have not thought of is to remove the parameter that you set and either

a) hardcode your own record selection criteria in the report b) pass your own record selection criteria when the report runs

The whole reason you're setting the parameter is so you can help select the records. You can do that via setting your own record selection, too.



来源:https://stackoverflow.com/questions/5171625/reuse-only-some-parameters-on-crystal-reports-refresh

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!