我在Visual Studio 2010.中使用SAP Crystal Reports。我想定製Crystal Report Viewer 導出選項。也就是說,我想只顯示出口到PDF,並在我的水晶報表查看器中出類拔萃。
我怎麼能在13.0.x使用做到這一點在Crystal Report Viewer中自定義導出選項
4
A
回答
4
你可以限制的ReportViewer:
ReportViewer.AllowedExportFormats = (int)(ViewerExportFormats.ExcelFormat | ViewerExportFormats.PdfFormat);
1
this.crystalReportViewer1.AllowedExportFormats =(INT)CrystalDecisions.Shared.ViewerExportFormats.PdfFormat;
3
首先包括下面的代碼背後的頂部命名空間:using CrystalDecisions.Shared
;
那麼,下面寫的代碼在你的頁面加載事件爲:
保護無效的Page_Load(對象發件人,EventArgs的)水晶報表查看器的 {
CrystalReportViewer2.AllowedExportFormats = (int) (ViewerExportFormats.ExcelRecordFormat | ViewerExportFormats.PdfFormat);
}
相關問題
- 1. Crystal Report Viewer 2010
- 2. Crystal Report在Crystal Report Viewer中未顯示數據使用VS 2013
- 3. 用於Web的Crystal Report Viewer
- 4. Crystal Report Viewer準確性
- 5. Crystal Report Viewer - 登錄提示
- 6. 在ASP.NET中顯示Crystal Report Viewer
- 7. Crystal Report Viewer - 輸入參數後導出到/打開PDF
- 8. 如何自動化Crystal Report導出?
- 9. 打印不顯示打印選項對話框Crystal Report Viewer在我的C#中
- 10. Crystal Report Viewer未顯示圖像
- 11. C#Winforms新形式的Crystal Report Viewer
- 12. Crystal Reports和Report Viewer運行時問題
- 13. Crystal Report Viewer不接受登錄信息
- 14. Crystal Report Viewer顯示空白頁面
- 15. 設置Crystal Report Viewer 2016控件的ReportSource
- 16. 如何使PDF成爲Crystal Report的默認導出選項?
- 17. Crystal Report 9.2
- 18. crystal report&sub report
- 19. Crystal Report Viewer未在瀏覽器中加載
- 20. Visual Studio:在Crystal Report Viewer中減少圖像質量
- 21. 當在Access中承載Crystal Report Viewer時丟失圖標
- 22. Crystal Report中的複選框
- 23. Crystal Report將不會出現在Crystal ReportViewer
- 24. 將Crystal Report導出爲圖像
- 25. 將Crystal Report導出爲PDF凍結 - Vb.Net2003
- 26. Crystal Report導出報告爲excel文件
- 27. 將Crystal Report導出爲CSV格式
- 28. Report Viewer&vb.net 2010?
- 29. Report Viewer VB.NET
- 30. C#winforms:Microsoft Report viewer
可能重複 - 以編程方式限制文件格式選項](http://stackoverflow.com/questions/2380956/crystal-report-viewer-programmatically-restricting-file-format-options) – 2013-05-29 09:16:49