【问题标题】:Do I have to use ServerMode for Microsoft ReportViewer in a WebForm?我是否必须在 WebForm 中为 Microsoft ReportViewer 使用 ServerMode?
【发布时间】:2009-09-02 21:05:47
【问题描述】:

我正在尝试在 Web 应用程序中使用 Microsoft Reporting Services 查看Hello world 报告。

我将创建的报告在查看时总是会刷新(即没有保存数据),因此我认为没有理由使用报告管理器。

我想将rdlc 文件包含在我的Web 应用程序本身中,我将在其中拥有一个托管ReportVieweraspx 页面。

我试过这个,希望Local 也可能意味着网络应用程序的本地...

    ReportViewer1.ProcessingMode = ProcessingMode.Local;
    ReportViewer1.LocalReport.ReportPath = "~/Reporting/Hello World.rdlc";
    ReportViewer1.LocalReport.Refresh();

但情况似乎并非如此。查看我的页面时出现以下错误。

本地报表处理过程中发生错误。报表定义 对于报告'D:[我的 Web 应用程序的本地路径 来源]\~/Reporting/Hello World.rdlc' 没有被指定 不能 找到路径的一部分'D:[我的 Web 应用程序的本地路径 来源]\~\Reporting\Hello World.rdlc'。

【问题讨论】:

    标签: asp.net reporting-services reportviewer reportmanager


    【解决方案1】:

    是的,本地处理模式意味着 RDLC 文件位于本地源,而不是由 SQL Server 生成。

    从错误消息看来,您的斜线似乎是倒置的。尝试使用路径,或者更具体地说,尝试将斜杠的方向从 / 更改为 \

    它应该可以工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多