Visual Studio 2008和Crystal 9.2? [英] Visual Studio 2008 and Crystal 9.2?

查看:86
本文介绍了Visual Studio 2008和Crystal 9.2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们一直在使用VS 2005的Crystal 9.2(VS 2003版本),以便不会强迫我们的客户从Crystal 9升级,同时仍然可以使用我们应用程序的更新版本。我们能够通过专门引用VS2005中的Crystal 9库来实现这一目的。

We had been using Crystal 9.2 (the VS 2003 version) with VS 2005, in order to not force our customers to upgrade from Crystal 9 while still being able to use newer versions of our application. We were able to do this by specifically referencing the Crystal 9 libraries in VS2005.

我们刚刚升级到VS 2008虽然引用似乎仍然完好无损,但任何嵌入了报表的类库(作为资源)现在都会失败并出现以下错误:

We just upgraded to VS 2008, and while the references still seem to be intact, any class library that has embedded reports in it (as resources) is now failing with the following errors:

CommunicationResources\Invoice.cs(33,30):错误CS0115:'CreateSystemData.CommunicationResources.Invoice.NewGenerator':找不到合适的方法覆盖
CommunicationResources \ Invoice.cs(42,32):错误CS0115:'CreateSystemData.CommunicationResources.Invoice.FullResourceName':找不到合适的方法来覆盖
CommunicationResources \OrderConfirmation.cs(33,30) :错误CS0115:

  CommunicationResources\Invoice.cs(33,30): error CS0115: 'CreateSystemData.CommunicationResources.Invoice.NewGenerator': no suitable method found to override
  CommunicationResources\Invoice.cs(42,32): error CS0115: 'CreateSystemData.CommunicationResources.Invoice.FullResourceName': no suitable method found to override
  CommunicationResources\OrderConfirmation.cs(33,30): error CS0115:

我尝试过手动执行"运行自定义任务"从右键单击菜单,它重新生成文件,但编译器仍然会抛出这些错误。

I've tried manually executing the "Run Custom Task" from the right-click menu, and it regenerates the file fine, but the compiler still throws these errors.

有谁知道如果有什么办法可以让VS2008正确使用CR 9.2运行时?

Does anyone know if there's anything I can do to get VS2008 to use the CR 9.2 runtime correctly?

推荐答案

Eric,

Eric,

我今天遇到了同样的问题并解决了它。

I had the same problem today and solved it.

当你的项目自动升级到2008年时,你的项目引用被自动更新为错误的水晶版本。

What apparently happened was that your project's references were automatically updated to the wrong version of crystal when you had your project automatically upgraded to 2008.

我做了什么修复它(我使用的是Crystal 11.5,但理论上它应该是相同的):

What I did to fix it(I am using Crystal 11.5, but in theory it should be the same):

转到引用并删除下面列出的引用:

Go to References and delete the references listed below:

CrystalDecisions.CrystalReports.Engine.dll

CrystalDecisions.CrystalReports.Engine.dll

CrystalDecisions.ReportSource

CrystalDecisions.ReportSource

CrystalDecisions.Shared

CrystalDecisions.Shared

然后我手动将参考文献添加到项目中。

I then added the references manually into the project.

这解决了我的问题。试一试。

This solved the problem for me. Give it a shot.

james


这篇关于Visual Studio 2008和Crystal 9.2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆