问题描述
有没有办法使vs2008与旧的(vs2005水晶报表)程序集一起工作,而不需要在客户端机器上安装任何更新?
Is there a way to make VS2008 work with the old (vs2005 crystal reports) assemblies and not require any updates to be installed in the client machines?
将Visual Studio 2005 .net 2.0解决方案升级到Visual Studio 2008.目的是利用IDE的改进,并且它支持多目标定位。解决方案仍然需要针对.net 2.0构建。
We have upgraded a Visual Studio 2005 .net 2.0 solution to Visual Studio 2008. The purpose is to take advantage of the IDE improvements and because it supports multi targeting. The solution still has to be built against .net 2.0.
这一切都像广告一样工作,我们在安装了.net 2.0的机器中重建和运行它。但是在测试期间,当我们尝试显示一个包含在应用程序中的Crystal报表时,我们会遇到一个异常。
It all works as advertised, we rebuild and run it in a machine with only .net 2.0 installed. But during testing we get an exception when we try to show a Crystal Report that is included with the application.
然后我们发现没有告诉我们,Visual Studio更改了对水晶组件的引用,并将我们的解决方案指向vs2008附带的更新版本,这需要在客户端计算机上更新水晶运行时。
Then upon review we find out that without telling us, Visual Studio changed the references to the crystal assemblies and pointed our solution to the updated versions that come with vs2008, which requires crystal runtime be updated on client machines.
我们尝试删除
推荐答案
-
t使用Crystal报表
don't use Crystal reports
您可以尝试将所有报表放在单独的项目中。然后在VS2005中创建第二个Visual Studio解决方案,它使用相同的项目(添加现有项目)。
然后使用VS2005编辑报表。在vs2008中为您的参考创建库目录并引用vs2005 dll。
You could try to put all reports in a separate project. Then create a second visual studio solution in VS2005 which uses the same project (add existing project).Then use VS2005 for editing your reports. Create a library directory for your references in vs2008 and reference the vs2005 dll's.
不知道工作,但它可以值得一试。
Don't know for sure if it works, but it could be worth a try.
这篇关于多目标在vs2008与水晶报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!