Visual Studio 2005 使用 Crystal Report 9 和 ODBC 驱动程序创建 Setup.exe

发布于 2024-11-18 08:24:12 字数 423 浏览 1 评论 0原文

我的项目运行良好。现在我想创建一个 setup.exe 并将其用于部署。

上次我发送它很好,但在最后几次尝试中,我现在放弃了,我遇到了以下问题:

  1. 在我安装 setup.exe 后,即使在项目在调试器下运行的计算机上创建了该项目也会运行除非我尝试在 Crystal Report 下打印报告。给出的错误是“无法加载数据库信息。”无法加载 Crbd_odbc.dll'。我可能会提到我的数据库连接是通过ODBC 访问的。

我现在重新安装 Crystal Report。问题就解决了。

我的预感:由于某种原因,对系统 DLLCrbd_odbc.dll 的引用正在丢失,并且在重新加载 Crystal 报表时正在恢复。

我不知道如何提供正确的 Setup.exe 进行部署。

问候,

哈文德·S·贾巴尔

My project is running fine. Now I want to create a setup.exe and give it for deployment.

Last time I sent it it was fine but for the last few attempts and I am now giving up I have the following problem:

  1. After I install the setup.exe thus created even on the machine on which the project was running under debugger the project runs file unless I try to print a report under Crystal Report. The error given is 'Failure to load database information. Unable to load Crbd_odbc.dll'. I may mention that my database connection to access is through ODBC.

I now re-install Crystal Report. The problem gets solved.

My Hunch: For some reason the reference to the system DLLCrbd_odbc.dll is being lost and is being restored while reloading Crystal report.

I do not know how to give a proper Setup.exe for deployment.

Regards,

Harvinder S Jabbal

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

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

发布评论

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

评论(1

转角预定愛 2024-11-25 08:24:13

当您在 Visual Studio 中为使用 Crystal Reports(Crystal Reports Viewer Control)的应用程序创建安装部署包时,您需要确保还添加对 Crystal Runtime 组件的引用。

您可以通过两种方式做到这一点。

  1. 您可以在安装程序中包含您正在使用的版本的 Crystal Reports 合并模块。 (不建议这样做,因为仅由于 Crystal Reports,您的安装大小将会很大)

  2. 您不包括对 Crystal Reports 组件的任何引用,但是,在软件的要求中,您需要指定客户端需要安装正确的 Crystal Reports 运行时(建议这样做)

两个都可以下载,合并一下模块和/或 crystal 运行时,来自 SAP/Crystal Reports 网站。

注意:Crystal Reports 包含 2 组组件,如果您手动包含所使用的引用程序集,则这些组件是托管组件(您在 .NET 应用程序上引用的组件)和本机组件(真正执行低级操作的组件,例如 DLLCrbd_odbc.dll)如果将 .NET 项目添加到 setup.exe 中,它将无法工作,因为这些托管 dll 正在寻找由 Crystal Reports 完整版运行时/合并模块安装的本机 dll。
也许这就是为什么你没有那个 .dll

When you create a setup deployment package in Visual Studio for an application that uses Crystal Reports (the Crystal Reports Viewer Control) then you need to be sure you also add the references to the Crystal Runtime components.

You can do this in 2 ways.

  1. You include the Crystal Reports Merge module for the version you are using within your Setup. (this is not recommended because your setup size will be huge because of crystal reports only)

  2. You do not include any references to the Crystal Reports components, however, in the requirements of your software you need to specify that the client needs to install the correct Crystal Reports Runtime (this is recommended)

You can download both, the merge module and/or the crystal runtime, from the SAP/Crystal Reports web site.

NOTE: Crystal Reports contains 2 set of components, those managed (the ones you reference on your .NET app) and those native (the ones that really do the low level stuff such as DLLCrbd_odbc.dll) if you manually include the referenced assemblies used by your .NET project into your setup.exe it won't work because those managed dlls are looking for the native ones which are installed by Crystal Reports Full version of the Runtime/MergeModule.
Maybe that's why you don't have that .dll

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