Crystal Reports different versions on pc and on server

末鹿安然 提交于 2020-01-15 11:09:04

问题


I'm building a winforms application using a crystalreportviewer control (version 10.5.3700.0). Application works fine (it loads report from resources and displays it fine). But when I put my application on server (other pc) that has runtime in versions 12.0.1100.0 and 12.0.2000.0. My application isn't showing at all, even errors don't show :/

I was trying to use dll's in version 12.0.1100.0 in my application by removing references and adding new, but this generates errors.

I can't install runtime 10.5 on server.

Is it possible to add controls in version 12.0.xxxx to visual studio 2008? How to do that?

I think that if I use version 12.0.xx controls in my application it will work fine.

Please help!!!

What I have done:

I have removed Crystalreportviewer control from toolbox and added new one from dll containing version 12.0, but no luck. Visual is adding control, all references, but control isn't visible :/


回答1:


Best solution is installing same runtime on the server.
Anyway, you can use this XML in your app.config or web.config:

  <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>

where oldVersion is the version you use for development and newVersion is the version installed on the server




回答2:


Well, I have use CrystalReports, but for web. And I faced the same problem. CR is very boring about the versions and other stuff. Our solution in here was keep the 10.5 version and install on the server the same version. But, maybe these links could help you in some way:

To download only packages of CrystalReports: http://resources.businessobjects.com/support/additional_downloads/runtime.asp

To look for any kind of CrystalReports downloads: https://websmp230.sap-ag.de/sap%28bD1wdCZjPTAwMQ==%29/bc/bsp/spn/bobj_download/main.htm



来源:https://stackoverflow.com/questions/9600605/crystal-reports-different-versions-on-pc-and-on-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!