无论日期时间参数如何,CrystalReportViewer都会显示整个数据 [英] CrystalReportViewer displays whole data regardless of date time parameters

查看:96
本文介绍了无论日期时间参数如何,CrystalReportViewer都会显示整个数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VS2010和SAPCrystalReports Redist版本13(64位)。当我运行报告时,在第一次加载期间,无论日期和时间参数如何,它都会获取所有数据。在第二次运行中,它会过滤掉并获得正确的数据。 

I am using VS2010 and SAPCrystalReports Redist Version 13(64-bit). When I run the report , during first load, it is getting all the data regardless of date and time parameters. In the second run, it filters out and gets correct data. 

我还会向申请报告中发送更多其他参数以及日期和时间参数。 

I am sending a few more other params too to the report from application along with date and time params. 

这不是错误的。 BUt,它返回数据库中可用的完整数据(与当前参数相关,但不是日期和时间)。如果我不更改参数并再次运行报告,则会显示有效数据。每当我关闭并重新打开
应用程序时,每次重新打开/重新加载报表查看器表单时都会发生这种情况。

It is not erroring out. BUt, it is returning full data available in the database (relavant to current params, but not date and time). If I dont change the params and run the report again, it shows valid data. This happens everytime I close and reopen the applicationie, each time i reopen/reload the report viewer form.

推荐答案

您好sraman,

Hi sraman,

感谢你的提问。

你的意思是你无法在第一个查询中通过params传递检索完整数据,但我是不确定你是如何创建参数的?

You mean you couldn't retrieve full data at the first query by pass in params, but I am not sure how you create param?

这是一个关于params的链接:
http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-string-parameter.htm

Here is a link about params: http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-string-parameter.htm

测试代码以查看方案是否再次发生。

Test the code to see whether the scenario happens again.

祝你有愉快的一天。


这篇关于无论日期时间参数如何,CrystalReportViewer都会显示整个数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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