在asp.net Web应用程序中集成SSRS时出现问题

问题描述:





我想在asp.net web应用程序中使用报表查看器控件来显示SSRS报表。以下代码工作正常。但它会重定向到报告管理器URL。我不想要这个。我试图动态使用C#代码。请帮帮我。



Hi ,

i am trying to show SSRS report using Report viewer control in asp.net web application. the below code is working fine. but it redirects into report manager URL. i dont want this. i am trying to do this in dynamically using C# code. please help me.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EffortReport.aspx.cs" Inherits="MasterPage_EffortReport" MasterPageFile ="~/MasterPage/Home.master" %>
<%@ Register Assembly="reportviewer"

    Namespace="Microsoft.Samples.ReportingServices"  TagPrefix="rsweb" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
<div style="height:600px;">
 <table width ="100%" height ="100%" >
            <tr height="7%">
                <td align ="center" >
                    <asp:HyperLink ID="hypEffort" runat ="server" NavigateUrl ="~/MasterPage/EffortPage.aspx" Text ="Go to Effort Tracker"></asp:HyperLink>
                </td>
            </tr>
            <tr height="93%">
                <td width ="100%" height ="100%">
                 <rsweb:ReportViewer  ID ="ReportViewer1" runat ="server"  ReportPath ="/EffortTracker/GetReportsByResource" Width ="100%" Height ="100%"

                    ServerUrl ="http://ReportServer/Report" EnableViewState ="true"  ProcessingMode="Remote" />

                </td>
            </tr>
 </table>
 </div>
</asp:Content>

重定向???您的页面本身是否被重定向到reportserver或报表查看器显示报表服务器页面本身?



如果是第二种情况?确保报表查看器控件中提供的URL和拼写错误,凭据(如果有)。此外,可能存在安装方式和用于报表服务器托管的IIS类型/版本甚至浏览器版本或报表查看器控件版本的问题。



检查http://*.com/questions/9479936/report-viewer-links-redirecting-to-other-reports-do-not-work



希望你按照正确的程序,如http://msdn.microsoft.com/en-us/library/ms251671.aspx



我建议在你的aspx页面中使用设计模式配置报告查看器。



问候,

Pavan N
"redirects "??? Is your page itself getting redirected to reportserver or the report viewer showing a report server page itself?

If it is the second case? Make sure the url provided in report viewer control and the spell mistakes, credentials if any. Also there might be problem with the way of installation and type/version of IIS you are using for report server hosting or even the browser version or reports viewer control version.

check http://*.com/questions/9479936/report-viewer-links-redirecting-to-other-reports-do-not-work

Hope you followed the proper procedures like http://msdn.microsoft.com/en-us/library/ms251671.aspx

I suggest use design mode in your aspx pages to configure the report viewer.

Regards,
Pavan N