Using SSRS in ASP.NET 1.1

孤者浪人 提交于 2019-12-24 03:15:57

问题


Is it possible to use SSRS for reports in an ASP.NET 1.1 application? Is there a report viewer control for ASP.NET 1.1? If not is there any workaround for this?


回答1:


One way you can get around it is to use the querystring commands that Reporting Services makes available and serve up the reports in PDF format (or in any of the other deliverable formats to the end user).

Reporting Services itself requires .NET 2.0 to run on its own, so there is no actual controller for displaying the reports live on a website that is only .NET 1.1

Edit: Here is the MSDN information concerning URL Access.

http://msdn.microsoft.com/en-us/library/ms153586.aspx

http://msdn.microsoft.com/en-us/library/ms153563.aspx




回答2:


I have used the report viewer control, but have not found it very useful the majority of the time. Depending on what you are trying to accomplish, you can access the reports directly via a URL. You can even do this with passing parameters to the report.

For example...
http://reports.mycompany.com/reportserver?%2fMyCompany%2fProject+Folder%2fReportName&EndDate=2/21/2009&BeginDate=2/15/2009&rs%3aParameterLanguage=en-US&rc:parameters=true

The other option that is available is to use the web service that is part of reporting services. You can then render back the bytes of the report in different formats (PDF, word, Excel...) and output those to the user for download. I can give you more information on the web service if that is the route you are looking at...




回答3:


You can access the Report Server through the web service interface from asp.net 1.1. Add a web reference to your project and then call the various web methods exposed by the report server to render your reports in one of the available formats. For example, if you render the report in HTML format, you can inject the HTML into a Literal control for display on your web page. You don't get the advantage of the report viewer's interface for selecting parameter values, paging and exporting, but it should be possible to create a page that mimics those functions.



来源:https://stackoverflow.com/questions/566133/using-ssrs-in-asp-net-1-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!