好的,我有很多RDLC的麻煩,所以回到RDL報告。現在,我明白我需要報告服務器才能運行報告,然後在前端可以使用報告查看器並選擇報告路徑。我正在使用本地計算機,因此至少要使其在本地工作。我不明白如何在本地安裝報告服務器。我在網上發現了一些MSDN文章,但它們過於複雜。有關於如何使用網頁中的RDL報告的簡單教程?如何在網站上顯示rdl報告
回答
我假設你熟悉asp.net。創建一個新的asp.net應用程序或網站。 添加Microsoft.Reporting.WebForms的參考(右鍵 - >添加引用)
然後在你的頁面指令添加這個
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
那麼你應該能夠使用ReportViewer控件作爲
<rsweb:ReportViewer ID="rptOne" runat="server" AsyncRendering="true" ProcessingMode="Remote" ShowPrintButton="false" ShowPageNavigationControls="true" ShowParameterPrompts="false" ShowBackButton="true" ShowExportControls="true" Height="1000px" Width="1000px" SizeToReportContent="false"> </rsweb:ReportViewer>
(當然,你不需要設置我做的所有屬性。)
你ç一個然後設置您的網址後面的代碼
Me.rptOne.ServerReport.ReportServerUrl = New System.Uri(sUrl)
Me.rptOne.ServerReport.ReportPath = sPath
SQL Server報表服務(SSRS)安裝微軟SQL Server的一部分。您需要使用SQL Server安裝介質來安裝SSRS。您可以安裝僅安裝SSRS而無需其他SQL Server組件,但您需要有一個SQL Server來存儲SSRS保存其數據的數據庫。
我沒有與下端選項太多的經驗,但SSRS可與「SQL Server Express with Advanced Services」
不是很多文檔的報告是有用的,但更難以再 SQL Server報表服務(SSRS)讓一個類在這個代碼片段中傳遞整個報表查看器rpt =報告查看器傳入堆中: rpt.LocalReport.DataSources.Clear();
Microsoft.Reporting.WebForms.ReportDataSource rptdTitle = new Microsoft.Reporting.WebForms.ReportDataSource();
rptdTitle.Name = "DataSet1";
rptdTitle.Value = dt2;
rpt.LocalReport.DataSources.Add(rptdTitle);
Microsoft.Reporting.WebForms.ReportDataSource rptdTop = new Microsoft.Reporting.WebForms.ReportDataSource();
rptdTop.Name = "DataSet2";
rptdTop.Value = dt1;
rpt.LocalReport.DataSources.Add(rptdTop);
Microsoft.Reporting.WebForms.ReportDataSource rptDate = new Microsoft.Reporting.WebForms.ReportDataSource();
rptDate.Name = "DataSet3";
rptDate.Value = dsTableDate;
rpt.LocalReport.DataSources.Add(rptDate);
Microsoft.Reporting.WebForms.ReportDataSource rptTable = new Microsoft.Reporting.WebForms.ReportDataSource();
rptTable.Name = "DataSet4";
rptTable.Value = dtReport;
rpt.LocalReport.DataSources.Add(rptTable);
rpt.LocalReport.ReportPath = System.Web.HttpContext.Current.Server.MapPath(@"~\Reports\rptPeriodTotals.rdlc");
rpt.LocalReport.Refresh();
- 1. .rdl報告未在C#中顯示
- 2. 如何在asp.net網站中顯示Power View報告
- 3. 我可以在.Net 2網站上顯示SSRS 2008報告嗎?
- 4. 如何在SSRS報告中應用分組RDL報告
- 5. 如何在SharePoint站點上顯示報告?
- 6. 如何顯示在報告
- 7. RDL文件 - 報告服務顯示在設計視圖HTML
- 8. 在SharePoint上顯示報告
- 9. 如何在我的網站頁面上顯示Google Analytics報告或實時報告?
- 10. 如何在Microsoft Reporting Services RDL報告中有條件地突出顯示字段?
- 11. 如何在wp網站上顯示facebook廣告?
- 12. 如何在我的網站上顯示隨機廣告
- 13. RDL報告與MVC3(剃刀)
- 14. 如何在網站上顯示樹?
- 15. 如何在網站上顯示ppt
- 16. 顯示子報告報告
- 17. 在網站上顯示網站?
- 18. 在ASP.NET中顯示Stimulsoft報告網頁
- 19. 如何將.rdl報告上載到CRM 2011
- 20. 報告服務,在rdl中有兩個報告
- 21. 如何讓我的自定義Maven報告插件顯示在生成的網站中的項目報告下?
- 22. 如何在網站上顯示我的google +網站的帖子
- 23. 在網站上顯示pdf
- 24. 網站顯示在Mac上
- 25. 在網站上顯示pdf
- 26. 在網站上顯示RTSP
- 27. 顯示報告
- 28. 顯示報告
- 29. 如何在cyrtal報告中顯示個別報告
- 30. 在iReport上顯示更多關於一個報告的報告
好吧。我得到了這個部分,但我在哪裏獲得我的報告的URL?就像您在展示的鏈接中一樣,我如何使用Web界面創建報表服務器實例。 – user194076
@imAbhi:Plz dnt uz txtspk。 –
@user Asuming你已經安裝了MS報表服務器,你可以將它發佈到一個文件夾並設置一個path.refer這個http://stackoverflow.com/questions/5191297/how-to-deploy-ssrs-on-local – imAbhi