在我的网页中嵌入SSRS

时间:2017-07-25 04:13:55

标签: asp.net reporting-services ssrs-2008-r2

我正在尝试在我的网页(ASP.net)中使用现有的SSRS报告

我在我的页面中使用ReportViewer并设置服务器报告和报告路径

但报告未显示并收到此错误

项目'/ TEST /财务/ WIP +帐户'的路径无效。完整路径长度必须少于260个字符;其他限制适用。如果报表服务器处于纯模式,则路径必须以斜杠开头。 (rsInvalidItemPath)

我看了这个

how to set Reportviewer controls report server Url and report path properties in asp.net

但仍无法正常工作

这是我的代码

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Main.aspx.cs" Inherits="DeployRep.Main" %>

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
 <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
   <div>

    </div>
        <rsweb:ReportViewer ID="ReportViewer1" runat="server" Width="1239px" ProcessingMode="Remote" Font-Names="Verdana" Font-Size="8pt" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt">
            <ServerReport ReportServerUrl="http://mySSRSServ/reportserver" ReportPath="/TEST/Financial/WIP+Account"/>

        </rsweb:ReportViewer>
    </form>
</body>
</html>

1 个答案:

答案 0 :(得分:0)

我找到了答案

我收到错误的原因是因为单词之间的+号 我用空格替换它然后它工作

        <ServerReport ReportServerUrl="http://mySSRSServ/reportserver" ReportPath="/TEST/Financial/WIP Account"/>
相关问题