我注意到,如果报告具有为其所有参数指定的默认值,那么它会在启动时自动呈现。我怎样才能防止这一点?也就是说,我不希望在用户单击“查看报告”按钮之前呈现报告如何在启动时自动呈现Reporting Services报告?
3
A
回答
6
如果所有参数都有默认值,则无法停止报告呈现。
停止报告自动呈现的唯一方法是至少有一个参数没有默认值。
0
我从下面的解决方案来实现的:
如果您正在使用的ReportViewer它的更多钞票来设置属性ShowReportBody="False"
。然后在OnSubmittingParameterValues
事件中,将ShowReportBody
属性更改为true。那么在报告中不需要任何额外的参数或没有默认值的参数。
<rsweb:ReportViewer
ID="_rv"
runat="server"
Width="100%"
Height="100%"
ShowReportBody="False"
ShowPrintButton="false"
OnSubmittingParameterValues="rv_SubmitParamValues"/>
然后在rv_SubmitParamValuesmethod
:
this.rv.ShowReportBody = true;
相关问题
- 1. 从.Net代码启动Reporting Services报告
- 2. Reporting Services报告
- 3. 可以在SQL Server Reporting Services 2008报告中呈现HTML吗?
- 4. 构建呈现Sql Server Reporting Services报告的iOS应用程序
- 5. PDF中的文本Reporting Services报告中的呈现“overprints”
- 6. MS Reporting Services - 慢速报告
- 7. 自动重新加载Reporting Services中的参数选择报告
- 8. Reporting Services Excel呈现扩展?
- 9. 如何根据值自动跳转到另一个报告。 Reporting Services
- 10. 在MVC3中呈现RDL(Reporting Services)
- 11. 使用SOAP API在SQL Server Reporting Services中呈现报表
- 12. 如何在启动时呈现ModalViewController?
- 13. 优化Reporting Services中的报告
- 14. SQL Reporting Services报告版本比较
- 15. Reporting Services 2008中的多个报告列
- 16. SQL Server Reporting Services - 本地化报告?
- 17. VS 2008 Reporting Services报告定义生成
- 18. 页脚没有出现在Reporting Services 2005导出为PDF报告
- 19. Reporting Services在展开时自动滚动到锚点
- 20. Birt当您选择呈现给xls时自动呈现给xlsx报告
- 21. 如何在SQL 2005 Reporting Services中创建列/行报告?
- 22. 如何在Microsoft Reporting Services 2008 R2中生成每日报告?
- 23. 如何做到在SQL Server Reporting Services的一个子报告
- 24. 如何在SQL Server Reporting Services 2008中复制报告
- 25. 在Reporting Services中,如何在更改任何参数时强制执行报告?
- 26. SQL Reporting Services报告仅在第二次点击时加载
- 27. 无法打印来自SQL Reporting Services的报告
- 28. 您如何部署您的报告(使用Reporting Services)
- 29. 如何为SQL Server 2005 Reporting Services报告创建模板?
- 30. SQL Server Reporting Services 2005 - 如何在打印时将报告缩放到一页?
我不相信的,这是可能的。我认为至少有一个参数必须为NULL才能让它不能自动运行。就像没有参数一样,它会自动运行。 – mameesh