在Report Viewer 08中限制结果? [英] Limiting results in Report Viewer 08?

查看:73
本文介绍了在Report Viewer 08中限制结果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法限制报告查看器中的结果集?有一个函数Ge​​tPageTotal(),但由于报表查看器位于Iframe内部,因此难以获得。

谢谢,

Mike

Is there any way to limit the result set in the report viewer?     There is a function GetPageTotal() but since the report viewer is inside an Iframe it is difficult to get at.

Thanks,

Mike

推荐答案

我相信你需要编写一个自定义代码来做这样的事情。
或者您可以尝试使用参数,创建参数列表10,20,30,40>>> 100然后将此参数值分配给您的SQL语句选择Top 100将其替换为Select Top @myParameter,我认为这应该有效。
I believe you need to write a custom code to do something like this.
Or
You can try to use Parameter, create a parameter list 10, 20,  30, 40 >>> 100 Then assign this parameter value to your SQL Statement Select Top 100 replace it with Select Top @myParameter, I think this should work .


这篇关于在Report Viewer 08中限制结果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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