運行
回答
您可以使用「動態生成RDLC - 表」從got reportviewer?頁例如
我可以確認您正在嘗試構建基於RDLC的動態報告解決方案,還是隻需要挖掘存儲在CRM中的數據並將其顯示在RDLC中?我想你已經用盡了Proclarity和Excel等其他工具,以便用戶挖掘數據。假設前者(即一個RDLC設計者),那麼RDLC只是一個XML文件,所以我想你可以通過在首次導出某種類型的數據之後應用XSLT來創建包含數據源,字段定義,單元格等的簡單的標準RDLC。你的設計師的xml'模型'?
聽起來像很多工作;)
我要生成RDLC文件 – 2010-07-30 08:55:36
+1謝謝.......... – 2010-07-30 09:59:55
感謝所有誰回答了這個問題的答案,但我發現一個好文章生成動態報告:Dynamic Reports with Reporting Services。
不錯的鏈接pranay ...! ! – Krunal 2010-07-30 10:10:17
謝謝.................. – 2010-07-30 10:29:08
您只需通過編碼更改數據源即可。 像
ReportViewer.LocalReport.DataSources.Clear();
ReportViewer.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Local;
ReportDataSource RDS = new ReportDataSource();
RDS.Name = "DataSet";
RDS.Value = itemReportTableBindingSource;
ReportViewer.LocalReport.ReportEmbeddedResource = "RFID.Reports.ItemsReport.rdlc";
ReportViewer.LocalReport.DataSources.Add(RDS);
this.itemReportTableTableAdapter.Fill(this.reportsDataSet.ItemReportTable);
this.ReportViewer.RefreshReport();
您應該諮詢此鏈接可能會有所幫助
How to dynamically add new columns to report created with Reporting Services?
RDLC報告是一個XML文件,並通過爲XMLDocument編輯它,你可以修改定位/報告/美體/ ReportItems /表節點並在其中執行以下操作
- 定義新列的標頭 - 在標頭節點內添加一個新的TableCell
- 綁定數據(從數據表)中的列 - 添加新的TableCell詳細節點
- 內定義式柱的寬度 - 添加新的TableColumn內部TableColumn來
- 1. 從rvm運行gem運行
- 2. 從命令行運行「即時運行」
- 3. 從IDE運行GUI函數時運行,但運行jar時不運行
- 4. SocketError:getaddrinfo在運行時運行heroku運行rake db:在Heroku上運行Rails4種子
- 5. 並行運行
- 6. 平行運行
- 7. 並行運行
- 8. Netsh.exe運行行
- 9. 從擴展運行方法擴展運行擴展運行
- 10. 如何在Ubuntu中運行PyCharm - 「運行在終端」或「運行」?
- 11. 程序在Eclipse中運行,但運行jar不運行
- 12. 運行
- 13. 運行
- 14. 運行
- 15. 運行
- 16. 運行
- 17. 運行
- 18. 運行
- 19. 運行
- 20. 運行
- 21. 運行
- 22. 運行
- 23. 運行
- 24. 運行
- 25. 運行
- 26. 運行
- 27. 運行
- 28. 運行
- 29. 運行
- 30. 運行
+1謝謝.......... – 2010-07-30 09:59:27
+1爲http://www.gotreportviewer.com/DynamicTable.zip – Krunal 2010-07-30 10:56:01