【问题标题】:unable to run crystal report on client machine无法在客户端机器上运行水晶报表
【发布时间】:2014-10-21 07:01:11
【问题描述】:

我在vs2010 中创建了一个项目,然后我创建了一个部署项目。当我在我的 PC 上运行应用程序时,它显然运行良好,但对于客户端机器,应用程序运行良好,除了水晶报告。 我做了设置项目,然后添加了先决条件

Microsoft .Net framework 4 Client Profile (x86 and x64)
 SQL server 2008 express
 windows installer 3.1

已选择 > 从与我的应用程序相同的位置下载先决条件 > 好的

这样,当我构建项目时,它是成功的,应用程序运行良好,但在客户端机器上没有水晶报告。所以我尝试为 .Net framework 4.0 添加先决条件 SAP Crystal Report Runtime Engine > ok

然后它在构建设置项目时显示 4 个错误,它们是;

Error   5   To enable 'Download prerequisites from the same location as my application' in the Prerequisites dialog box, you must download file 'Crystal Reports for .NET Framework 4.0\CRRuntime_32bit_13_0.msi' for item 'SAP Crystal Reports Runtime Engine for .NET Framework 4.0' to your local machine. For more information, see http://go.microsoft.com/fwlink/?LinkId=239883.

Error   7   General failure building bootstrapper   

Error   6   To enable 'Download prerequisites from the same location as my application' in the Prerequisites dialog box, you must download file 'Crystal Reports for .NET Framework 4.0\CRRuntime_64bit_13_0.msi' for item 'SAP Crystal Reports Runtime Engine for .NET Framework 4.0' to your local machine. For more information, see http://go.microsoft.com/fwlink/?LinkId=239883.

Error   8   Unrecoverable build error.

我尝试在客户端 PC 上安装 .NET Framework 4.0 的 CR 运行时,但它给出了错误,first install vs2010 to install CR runtime.vs2010 不应该安装在客户端 PC 上,我不知道如何修复它,问题出在哪里,水晶报告在我的电脑上运行良好,请帮我在客户端电脑上运行它。提前谢谢。

【问题讨论】:

    标签: c# .net visual-studio-2010 crystal-reports crystal-reports-2010


    【解决方案1】:

    我以某种方式解决了它,我更改了所有报告 .rpt 文件中的 property,将 build actionEmbedded Resource 设置为 Content,然后复制了我报告的所有 .rpt.cs 文件在同一个setup 文件夹中,所以它在客户端机器上也运行良好。

    【讨论】:

    • 您不需要放置.cs 文件。你只需要放.rpt 文件。
    • 是的,但不是来自项目。您需要将其从安装项目中删除。简而言之,文件构建后不需要 .cs 文件。应用程序只需要已发布的 .rpt 文件。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-07-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-10-04
    相关资源
    最近更新 更多