【问题标题】:Embedding SSRS in my webpage在我的网页中嵌入 SSRS
【发布时间】:2017-07-25 04:13:54
【问题描述】:

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

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

但报告未显示并出现此错误

“/TEST/Financial/WIP+Account”项的路径无效。完整路径的长度必须少于 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>

【问题讨论】:

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


    【解决方案1】:

    我找到了答案

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

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

    【讨论】:

      猜你喜欢
      • 2021-06-14
      • 2016-09-23
      • 1970-01-01
      • 2016-02-12
      • 2011-10-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多