0

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?

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.

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.

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.

We did try removing the references and adding the old ones but it won't compile.

4

5 回答 5

1
  1. 不要使用水晶报表

  2. 您可以尝试将所有报告放在一个单独的项目中。然后在使用相同项目的 VS2005 中创建第二个 Visual Studio 解决方案(添加现有项目)。然后使用 VS2005 编辑您的报告。为您在 vs2008 中的引用创建一个库目录并引用 vs2005 dll。

不确定它是否有效,但值得一试。

于 2009-05-28T14:03:56.357 回答
0

不要使用水晶报表

您可以尝试将所有报告放在一个单独的项目中。然后在使用相同项目的 VS2005 中创建第二个 Visual Studio 解决方案(添加现有项目)。然后使用 VS2005 编辑您的报告。为您在 vs2008 中的引用创建一个库目录并引用 vs2005 dll。

不确定它是否有效,但值得一试。

于 2009-05-28T14:58:30.817 回答
0

我只会硬着头皮升级。我在 Crystal Reports 2008 中发现了一些数据密集型报表的性能改进。

于 2009-05-22T18:05:53.920 回答
0

我们尝试了这个,最终只是在内部将我们所有的机器升级到最新的和(不是那么)最好的。

于 2009-05-22T17:58:34.277 回答
0

我们遇到了同样的问题。您可以让项目引用旧的 DLLS,它可以工作但可能导致 DLL 地狱。以前打过这种战斗,我不能推荐它。

在对 Crystal Reports 站点进行了长时间的探索之后,我得出的结论是,除了升级到 Crystal Reports 2008 或切换到不同的报表引擎之外,没有什么好的方法可以解决这个问题。

在我们的案例中,我们还没有开发出大量的 Crytal Reports,我们的报告需求并不大。我们切换到捆绑到 Visual Studio 中的 Microsoft 报告技术。花了一些功夫才弄清楚,但到目前为止,它看起来可以做任何我们需要的事情。不升级 Crystal Reports 为我们节省了一笔不小的费用。

希望这可以帮助。

于 2009-05-28T12:58:28.453 回答