Crystal在PC和服务器上报告不同的版本

时间:2012-03-07 11:28:30

标签: c# visual-studio-2008 crystal-reports

我正在使用crystalreportviewer控件(版本10.5.3700.0)构建winforms应用程序。应用程序工作正常(它从资源加载报告并显示它很好)。 但是当我将我的应用程序放在版本为12.0.1100.0和12.0.2000.0的运行时的服务器(其他PC)上时。 我的应用程序根本没有显示,甚至错误也没有显示:/

我试图通过删除引用并添加新内容来在我的应用程序中使用版本12.0.1100.0中的dll,但这会产生错误。

我无法在服务器上安装runtime 10.5。

是否可以将版本12.0.xxxx中的控件添加到visual studio 2008? 怎么做?

我认为如果我在我的应用程序中使用版本12.0.xx控件,它将正常工作。

请帮助!!!

我做了什么:

我已从工具箱中删除了Crystalreportviewer控件,并从包含12.0版本的dll中添加了新控件,但没有运气。 Visual正在添加控件,所有引用,但控件不可见:/

2 个答案:

答案 0 :(得分:3)

最佳解决方案是在服务器上安装相同的运行时 无论如何,您可以在app.config或web.config中使用此XML:

  <runtime> 
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="CrystalDecisions.CrystalReports.Engine" publicKeyToken="692fbea5521e1304" culture="neutral"/>
        <bindingRedirect oldVersion="xx.x.xxxx.x" newVersion="yy.y.yyyy.y"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="CrystalDecisions.Shared" publicKeyToken="692fbea5521e1304" culture="neutral"/>
        <bindingRedirect oldVersion="xx.x.xxxx.x" newVersion="yy.y.yyyy.y"/>
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="CrystalDecisions.ReportSource" publicKeyToken="692fbea5521e1304" culture="neutral"/>
        <bindingRedirect oldVersion="xx.x.xxxx.x" newVersion="yy.y.yyyy.y"/>
      </dependentAssembly>
      <dependentAssembly>
        ...
    </assemblyBinding>
  </runtime>

其中 oldVersion 是您用于开发的版本, newVersion 是服务器上安装的版本

答案 1 :(得分:0)

好吧,我使用的是CrystalReports,但是用于网络。我遇到了同样的问题。 CR对版本和其他东西非常无聊。 我们在这里的解决方案是保留10.5版本并在服务器上安装相同的版本。 但是,这些链接可能会以某种方式帮助您:

仅下载CrystalReports包: http://resources.businessobjects.com/support/additional_downloads/runtime.asp

要查找任何类型的CrystalReports下载: https://websmp230.sap-ag.de/sap%28bD1wdCZjPTAwMQ==%29/bc/bsp/spn/bobj_download/main.htm