Crystal Reports层叠参数不会在回发之间保留 [英] Crystal Reports Cascading parameters don't get preserved between postbacks

查看:71
本文介绍了Crystal Reports层叠参数不会在回发之间保留的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用(试图)CR版本XI,级联参数功能正常工作

要求用户输入参数。但是如果重新提交页面。它再次提示参数

。我确实设置了ReuseParameterValuesOnRefresh =" True"在一个观众中,但是它仍然不起作用。有没有人遇到这个问题。什么是解决方案?

请帮忙。


谢谢

I am using (trying to) CR version XI, cascading parameters feature works it
asks user to enter params. But if page is resubmitted. It prompts for params
again. I did set ReuseParameterValuesOnRefresh="True" in a viewer, but it
still doesn''t work. Did anyone run into this problem. What''s the solution?
Please help.

Thank you

推荐答案

您必须缓存报表对象。将报表对象保存到Session()

集合,然后在页面刷新时恢复它(确保明确表示

它作为ReportDocument)。 ASP.NET报告会做各种有趣的事情,如果你在页面刷新之间不要保存它们。


HTH,


Brian Bischof
www.CrystalReportsBook.com

" LP" < lp@a.com>在消息中写道

新闻:Og ************** @ TK2MSFTNGP12.phx.gbl ...
You have to cache the report object. Save the report object to the Session()
collection and then restore it upon page refresh (be sure to explicity cast
it as a ReportDocument). ASP.NET reports do all kinds of funny things if you
don''t save them between page refreshes.

HTH,

Brian Bischof
www.CrystalReportsBook.com

"LP" <lp@a.com> wrote in message
news:Og**************@TK2MSFTNGP12.phx.gbl...
我正在使用(尝试to)CR版本XI,级联参数功能工作
它要求用户输入参数。但是如果重新提交页面。它再次提示
params。我确实设置了ReuseParameterValuesOnRefresh =" True"在观众中,但它仍然无法正常工作。有没有人遇到这个问题。什么是解决方案?
请帮忙。

谢谢
I am using (trying to) CR version XI, cascading parameters feature works it asks user to enter params. But if page is resubmitted. It prompts for params again. I did set ReuseParameterValuesOnRefresh="True" in a viewer, but it
still doesn''t work. Did anyone run into this problem. What''s the solution?
Please help.

Thank you



Brian,I我没有使用ReportDocument对象,我正在设置查看器

ReportSource直接报告文件:


crViewer.ReportSource = Server.MapPath(" Reports /" ;& reportName)


在这种情况下我该怎么做?


谢谢

" Brian Bischof" ; <峰; br *** @ NoSpamBischofSystems.com>在消息中写道

news:eQ ************* @ TK2MSFTNGP14.phx.gbl ...
Brian, I am not using ReportDocument object, I am setting viewers
ReportSource to a report file directly:

crViewer.ReportSource = Server.MapPath("Reports/" & reportName)

What should I do in this case?

Thanks
"Brian Bischof" <Br***@NoSpamBischofSystems.com> wrote in message
news:eQ*************@TK2MSFTNGP14.phx.gbl...
你必须缓存报告宾语。将报表对象保存到
Session()集合,然后在页面刷新时恢复它(确保明确
将其转换为ReportDocument)。 ASP.NET报告会做各种有趣的事情,如果
你不能在页面更新之间保存它们。

HTH,

Brian Bischof
www.CrystalReportsBook.com

< LP" < lp@a.com>在消息中写道
新闻:Og ************** @ TK2MSFTNGP12.phx.gbl ...
You have to cache the report object. Save the report object to the Session() collection and then restore it upon page refresh (be sure to explicity cast it as a ReportDocument). ASP.NET reports do all kinds of funny things if you don''t save them between page refreshes.

HTH,

Brian Bischof
www.CrystalReportsBook.com

"LP" <lp@a.com> wrote in message
news:Og**************@TK2MSFTNGP12.phx.gbl...
我正在使用(试图)CR版本XI,级联参数功能
I am using (trying to) CR version XI, cascading parameters feature works


要求用户输入参数。但是如果重新提交页面。它再次提示
asks user to enter params. But if page is resubmitted. It prompts for


参数

。我确实设置了ReuseParameterValuesOnRefresh =" True"在观众中,但是
它仍然无法正常工作。有没有人遇到这个问题。什么是
解决方案?请帮忙。

谢谢
again. I did set ReuseParameterValuesOnRefresh="True" in a viewer, but it still doesn''t work. Did anyone run into this problem. What''s the solution? Please help.

Thank you




好的,我确实改了它到ReportDocument,即使没有

将它保存到会话变量,这对我有用。但现在我有另一个问题,即

导出。我有另一个按钮,将报告导出到excel并向客户端发送一个

文件,所以现在一个参数化报告不起作用。我试着将
保存到reportDoc并将它传递给会话和检索,但

没有用。

我认为CR是一个非常好的产品,非常敏锐的报告(当你得到他们工作的时候),非常光滑的设计师,特别是版本XI。但是他们的API和

对象层次结构非常令人困惑,并且与.NET友好产品所期望的结果不一致,我还没有看到任何关于
他们的API。

" LP" < lp@a.com>在消息中写道

新闻:ez ************** @ TK2MSFTNGP09.phx.gbl ...
Ok, I did change it to ReportDocument , and that worked for me even without
saving it to Session Variable. But now I am having another problem with
exporting. I have another button that export report to excel and sends a
file to a client, so now one parameterized report doesn''t work. I tried
saving reportDoc and it ParameterFields to session and retrieving, but
nothing works.
I think CR is a very good product, very sharp looking reports (when you get
them to work), very slick designer especially version XI. But their API and
object hierarchy is terribly confusing and inconsistent with what one would
expect from .NET friendly product, I haven''t seen any good documentation on
their APIs.
"LP" <lp@a.com> wrote in message
news:ez**************@TK2MSFTNGP09.phx.gbl...
Brian,我不是使用ReportDocument对象,我将查看器直接设置为报告文件:

crViewer.ReportSource = Server.MapPath(" Reports /"& reportName)
<在这种情况下我该怎么做?

谢谢

" Brian Bischof" <峰; br *** @ NoSpamBischofSystems.com>在消息中写道
新闻:eQ ************* @ TK2MSFTNGP14.phx.gbl ...
Brian, I am not using ReportDocument object, I am setting viewers
ReportSource to a report file directly:

crViewer.ReportSource = Server.MapPath("Reports/" & reportName)

What should I do in this case?

Thanks
"Brian Bischof" <Br***@NoSpamBischofSystems.com> wrote in message
news:eQ*************@TK2MSFTNGP14.phx.gbl...
您必须缓存报表对象。将报告对象保存到
You have to cache the report object. Save the report object to the


Session()


Session()

集合中,然后在页面刷新时恢复它(确保明确
collection and then restore it upon page refresh (be sure to explicity


强制转换


cast

它作为ReportDocument)。 ASP.NET报告会做各种有趣的事情,如果
it as a ReportDocument). ASP.NET reports do all kinds of funny things if


不要在页面刷新之间保存它们。

HTH,

Brian Bischof
www.CrystalReportsBook.com
LP < lp@a.com>在消息中写道
新闻:Og ************** @ TK2MSFTNGP12.phx.gbl ...
don''t save them between page refreshes.

HTH,

Brian Bischof
www.CrystalReportsBook.com

"LP" <lp@a.com> wrote in message
news:Og**************@TK2MSFTNGP12.phx.gbl...
我正在使用(试图)CR版本XI,级联参数功能
I am using (trying to) CR version XI, cascading parameters feature


工作

要求用户输入参数。但是如果重新提交页面。它再次提示
asks user to enter params. But if page is resubmitted. It prompts for


参数

。我确实设置了ReuseParameterValuesOnRefresh =" True"在观众中,但是
again. I did set ReuseParameterValuesOnRefresh="True" in a viewer, but


它仍然无法正常工作。有没有人遇到这个问题。解决方案是什么?请帮忙。

谢谢


it still doesn''t work. Did anyone run into this problem. What''s the solution? Please help.

Thank you





这篇关于Crystal Reports层叠参数不会在回发之间保留的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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