尝试加载crystal report运行时桌面应用程序时发生错误 [英] An error has occurred while attempting to load the crystal reports runtime desktop application

查看:93
本文介绍了尝试加载crystal report运行时桌面应用程序时发生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我在VB.net中使用VS10中的水晶报表制作桌面应用程序。

我的应用程序在我的系统中工作正常但是如果我将它运行到另一台没有安装水晶报告的PC上,它会给我一个错误:

Hello
I am making desktop application in VB.net with crystal report in VS10.
My application works fine in my system but if I run it to another PC which do not have crystal reports installed in it, it gives me error:

An error has occurred while attempting to load the Crystal Reports runtime desktop application Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. Please go to http://www.businessobjects.com/support for more information





我还需要做什么,因为它在我的设置中无法提供



What else should i need to do, because it is not possible to give

CRRuntime_32bit_13_0_12.msi

并要求用户安装它



我尝试了什么:



within my set up and ask user to install it

What I have tried:

I have copied all required dll to user PC at my application installed location.

推荐答案

您必须在设置中包含MSI并将其与您的应用程序一起安装。



未经测试的InnoSetup脚本部分(另请参阅 Inno设置知识库 [ ^ ]):

You have to include the MSI with your setup and install it together with your application.

Untested InnoSetup script portion (see also Inno Setup Knowledge Base[^] ):
[Files]
Source: "[<Path>\]CRRedist<version>.msi"; DestDir: "{tmp}"; Flags: deleteafterinstall

[Run]
Filename: "msiexec.exe"; Parameters: "/i ""{tmp}\CRRedist<version>.msi""";
Description: "Crystal Reports"; Flags: waituntilterminated



您也可以让shell执行MSI文件:


You may also let the shell execute the MSI file:

[Run]
Filename: "{tmp}\CRRedist<version>.msi"; Description: "Crystal Reports"; Verb: "open"; Flags: shellexec waituntilterminated



另请参阅 [运行]& [UninstallRun]部分 [ ^ ]各种选项和标志,如显示状态消息。



要在安装过程中处理错误,请使用 Pascal脚本:ShellExec [ ^ ]功能。


See also the [Run] & [UninstallRun] sections[^] for the various options and flags like showing a status message.

To handle errors during installation use the Pascal Scripting: ShellExec[^] function.


这篇关于尝试加载crystal report运行时桌面应用程序时发生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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