水晶报表分页isnt工作日期参数,但是与其他人 [英] Crystal report pagination isnt working for date parameters but is with others

查看:139
本文介绍了水晶报表分页isnt工作日期参数,但是与其他人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个水晶报告用CR写VS2010。报表将生成发票号码或日期范围内的发票。为此,报告有4个参数(从Invoice,toInvoice,fromDate& toDate)。存储过程可以处理任何字段的空值,以便它可以接收

I have a crystal report written in CR for VS2010. The report will produce invoices over a range of either invoice numbers or dates. To that end, the report has 4 parameters (fromInvoice, toInvoice, fromDate & toDate). The stored procedure can handle nulls for any of the fields so it can receive

如果我运行的报告只有发票号码报告分页工作正常,发票号码和日期组合(并且参数在分页上持续)。但是如果我只使用from和to日期搜索,那么它返回正确的页面数量(在web查看器中可见),但是当我点击next时,它似乎丢失日期参数并显示所有生成的发票。

If I run the report with just invoice numbers the reports pagination works fine, same for invoice numbers and dates combined (and the parameters persist across the pagination). But if I search with just the from and to dates then it returns the correct number of pages (as visible in the web viewer) but when I click next then it seems to lose the date parameters and displays all the invoices produced, ever.

有什么想法我会错吗?为什么当其他参数有一个日期参数不持久?
从相同的底层c#页面调用报告。

Any idea where I'm going wrong? why would a date parameter not persist when other parameters have? the report is called from the same underlying c# page.

推荐答案

viewer需要viewstatemode ='enabled'添加到aspx页

fixed. viewer needed viewstatemode='enabled' adding to the aspx page

这篇关于水晶报表分页isnt工作日期参数,但是与其他人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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