在 Crystal Reports 刷新时仅重用某些参数? [英] Reuse only some parameters on Crystal Reports refresh?

查看:20
本文介绍了在 Crystal Reports 刷新时仅重用某些参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有 2 个参数的 Crystal Reports.其中一个由运行报表的 C# 应用程序自动设置,而另一个由用户设置.我想这样当用户刷新报表时,只提示用户输入的参数.

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.

我知道 ReuseParameterValuesOnRefresh 属性,但这使得所有参数都被重用.我也尝试过附加 refreshreports 方法,但这似乎不起作用.当我查看查看器的 Refresh() 方法的定义时,我得到的只是一个带有未定义方法的抽象类,所以我不确定在哪里看.

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?

推荐答案

不能通过 Crystal 进行部分刷新.您需要构建自己的参数窗口并自行设置,并在刷新时显示提示.

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) 在报告中硬编码您自己的记录选择标准b) 在报告运行时通过您自己的记录选择标准

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.

这篇关于在 Crystal Reports 刷新时仅重用某些参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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