好的,我有很多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. 如何在SharePoint站点上显示报告?
- 3. RDL文件 - 报告服务显示在设计视图HTML
- 4. 在SharePoint上显示报告
- 5. 如何在我的网站页面上显示Google Analytics报告或实时报告?
- 6. 如何在Microsoft Reporting Services RDL报告中有条件地突出显示字段?
- 7. 如何在wp网站上显示facebook广告?
- 8. RDL报告与MVC3(剃刀)
- 9. 如何在网站上显示树?
- 10. 如何在网站上显示ppt
- 11. 显示子报告报告
- 12. 在网站上显示网站?
- 13. 如何让我的自定义Maven报告插件显示在生成的网站中的项目报告下?
- 14. 在网站上显示pdf
- 15. 在网站上显示RTSP
- 16. 在网站上显示pdf
- 17. 显示报告
- 18. 在移动设备上显示报告
- 19. 访问:在报告上显示数据
- 20. 在Web上显示JR报告
- 21. 如何在MVC网页中显示SSRS报告
- 22. 如何显示网站上的文字?
- 23. 报告网站的架构
- 24. Rdlc报告没有在网页上显示数据
- 25. Cognos报告显示,从网址
- 26. 将报告模板RPT/RDL转换为JRXML/Jasper报告?
- 27. 负载RDL报告转换为Web报告查看器
- 28. 网站上“报告滥用”功能的算法如何工作?
- 29. 如何防止我的网站代理网站作为钓鱼网站报告
- 30. 部署单个RDL文件SSRS报告
好吧。我得到了这个部分,但我在哪里获得我的报告的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