简体   繁体   English

您能否将 SSRS 报告放入 ASP.NET 应用程序中?

[英]Can you put a SSRS report into an ASP.NET application?

Can you put an SSRS report into a asp.net web application?您能否将 SSRS 报告放入 asp.net web 应用程序中? I mean directly into the application.我的意思是直接进入应用程序。 I have to migrate an application from an older server to a new server and the report that is written with another technology keeps crapping out on me.我必须将应用程序从旧服务器迁移到新服务器,而使用另一种技术编写的报告一直在困扰我。 One co-worker has suggested to me that I rewrite the reports in SSRS.一位同事建议我重写 SSRS 中的报告。 But the application is creating it's database in code and if I have to create a separate proj I will have to start picking apart my code into two projects.但是应用程序正在代码中创建它的数据库,如果我必须创建一个单独的项目,我将不得不开始将我的代码分成两个项目。 I don't have the time to do that currently.我目前没有时间这样做。

There's a couple of ways to do this.有几种方法可以做到这一点。 One is to use RDLC files which are basically standalone SSRS reports you can embed within the application See tutorial here一种是使用 RDLC 文件,这些文件基本上是独立的 SSRS 报告,您可以将其嵌入到应用程序中, 请参阅此处的教程

Another way is to embed an iFrame into your ASP application that uses the RS service described here另一种方法是将 iFrame 嵌入到使用此处描述的 RS 服务的 ASP 应用程序中

A third way (that we use) is to run some code against the SSRS SOAP service and return a DIV or HTML that we then embed into our own HTML described here第三种方法(我们使用的)是针对 SSRS SOAP 服务运行一些代码并返回 DIV 或 HTML,然后我们将其嵌入到我们自己的 HTML 中描述here

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM