vs2008 中的多目标与水晶报告

发布于 2024-07-22 02:49:39 字数 439 浏览 6 评论 0原文

有没有办法让 VS2008 与旧的(vs2005 crystal reports)程序集一起工作,而不需要在客户端计算机上安装任何更新?

我们已将 Visual Studio 2005 .net 2.0 解决方案升级到 Visual Studio 2008。目的是利用 IDE 的改进,并且因为它支持多目标。 该解决方案仍然必须针对 .net 2.0 构建。

一切都如宣传的那样工作,我们在仅安装了 .net 2.0 的计算机上重建并运行它。 但在测试过程中,当我们尝试显示应用程序中包含的水晶报表时,我们遇到了异常。

然后经过审查我们发现,Visual Studio在没有告诉我们的情况下更改了对crystal程序集的引用,并将我们的解决方案指向vs2008附带的更新版本,这需要在客户端计算机上更新crystal运行时。

我们确实尝试删除引用并添加旧的引用,但它无法编译。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

与酒说心事 2024-07-29 02:49:39
  1. 不要使用 Crystal 报表

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

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

  1. don't use Crystal reports

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

○闲身 2024-07-29 02:49:39

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

We tried this and ultimately just ended up upgrading all of our machines internally to the latest and (not so) greatest.

忆依然 2024-07-29 02:49:39

我就硬着头皮升级。 我发现 Crystal Reports 2008 对于某些数据密集型报表的性能有所改进。

I would just bite the bullet and upgrade. I've found some performance improvements in the Crystal Reports 2008 for some data intensive reports.

但可醉心 2024-07-29 02:49:39

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

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

就我们而言,我们尚未开发大量的 Crystal Reports,并且我们的报告需求不大。 我们改用了捆绑到 Visual Studio 中的 Microsoft 报告技术。 我们花了一些功夫才弄清楚,但到目前为止,它看起来可以做我们需要的任何事情。 不升级 Crystal Reports 为我们节省了一大笔钱。

希望这可以帮助。

We ran into the same problem. You can have the project reference the old DLLS, which works but can lead to DLL hell. Having fought that kind of battle before, I can't recommend it.

After exploring the Crystal Reports site for a long time, I came to the conclusion that there is no good way to solve this problem short of upgrading to Crystal Reports 2008 or switching to a different reporting engine.

In our case, we had not yet developed a large number of Crytal Reports, and our reporting needs are modest. We switched to the Microsoft Reporting Technology that is bundled into Visual Studio. It took a bit of effort to figure out, but so far it looks like it will do anything we will ever need. Not upgrading Crystal Reports saved us a non-trivial amount of money.

Hope this helps.

笔芯 2024-07-29 02:49:39

不要使用水晶报表

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

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

don't use Crystal reports

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文