我注意到,如果報告具有爲其所有參數指定的默認值,那麼它會在啓動時自動呈現。我怎樣才能防止這一點?也就是說,我不希望在用戶單擊「查看報告」按鈕之前呈現報告如何在啓動時自動呈現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