一、狀況描述:
在使用VS2010開發的帶CrystalReport 的網站發佈時,開啟帶CrystalReport 功能的畫面會報錯。
二、解決方案:
选择和下载一个安装包:
SAP Crystal Reports, version for Visual Studio 2010 -
标准程序安装软件安装包的visuals tudio IDE。(这个是给vs2010的报表插件安装,在本地开发时用到。)
SAP Crystal Reports, version for Visual Studio 2010 -
点击一次用来创建安装包,self-updating窗口的应用程序可以安装和运行最小的用户交互.
SAP Crystal Reports, version for Visual Studio 2010 -
合并模块安装包的组分,用来安装多个应用程序都分享着。
SAP Crystal Reports runtime engine for .NET Framework 4 (32-bit)
SAP Crystal Reports runtime engine for .NET Framework 4 (64-bit)
( 上边两个是你把WinForm打包发布后,需要这2个(根据不同的机器配置选择)安装包在客户的电脑上安装的。这样软件的报表功能才能正常运行。)
1、在你的开发环境中找到Visual Studio安装目录下的"SDK"v2.0"BootStrapper"Packages"CrystalReports,将安装文件CRRedist2010_x86.msi,复制到服务器中并安装。
2、如果程序还不能运行,需要将水晶报表的五个dll文件复制到你的网站下的bin目录,其五大将的名称如下:
CrystalDecisions. CrystalReports.Engine.dll
CrystalDecisions. ReportSource.dll
CrystalDecisions.Shared.dll
CrystalDecisions.Web.dll
CrystalDecisions.Windows.Forms.dll
那么他们身在何处呢?答:“在你的开发环境中C:"Program Files"Common Files"Business Objects"2.7" Managed"目录下”
二 另外会出现一个其他的问题 就是发布了以后发现web的工具栏的图标不显示。同时点击发现出现提示性的js错误。经过分析认为是水晶报表的资源没有安装。
打开C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\asp.NETClientFiles 找到文件夹CrystalReportWebFormViewer3 然后在桌面新建aspnet_client然后再里面新建system_web然后在里面新建2_0_50727。然后把 CrystalReportWebFormViewer3的所有东西copy到2_0_50727里面。这样就有完整的路径 aspnet_client\system_web\2_0_50727\CrystalReportWebFormViewer3
然后复制所有的asp.net_client整个文件夹到您的网站发布的根目录里面
三、使用注意與時機:
四、備註:
源文件來源於: http://maxh168.blog.163.com/blog/static/118180964201191531439232/
在使用VS2010開發的帶CrystalReport 的網站發佈時,開啟帶CrystalReport 功能的畫面會報錯。
二、解決方案:
选择和下载一个安装包:
SAP Crystal Reports, version for Visual Studio 2010 -
标准程序安装软件安装包的visuals tudio IDE。(这个是给vs2010的报表插件安装,在本地开发时用到。)
SAP Crystal Reports, version for Visual Studio 2010 -
点击一次用来创建安装包,self-updating窗口的应用程序可以安装和运行最小的用户交互.
SAP Crystal Reports, version for Visual Studio 2010 -
合并模块安装包的组分,用来安装多个应用程序都分享着。
SAP Crystal Reports runtime engine for .NET Framework 4 (32-bit)
SAP Crystal Reports runtime engine for .NET Framework 4 (64-bit)
( 上边两个是你把WinForm打包发布后,需要这2个(根据不同的机器配置选择)安装包在客户的电脑上安装的。这样软件的报表功能才能正常运行。)
1、在你的开发环境中找到Visual Studio安装目录下的"SDK"v2.0"BootStrapper"Packages"CrystalReports,将安装文件CRRedist2010_x86.msi,复制到服务器中并安装。
2、如果程序还不能运行,需要将水晶报表的五个dll文件复制到你的网站下的bin目录,其五大将的名称如下:
CrystalDecisions. CrystalReports.Engine.dll
CrystalDecisions. ReportSource.dll
CrystalDecisions.Shared.dll
CrystalDecisions.Web.dll
CrystalDecisions.Windows.Forms.dll
那么他们身在何处呢?答:“在你的开发环境中C:"Program Files"Common Files"Business Objects"2.7" Managed"目录下”
二 另外会出现一个其他的问题 就是发布了以后发现web的工具栏的图标不显示。同时点击发现出现提示性的js错误。经过分析认为是水晶报表的资源没有安装。
打开C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\asp.NETClientFiles 找到文件夹CrystalReportWebFormViewer3 然后在桌面新建aspnet_client然后再里面新建system_web然后在里面新建2_0_50727。然后把 CrystalReportWebFormViewer3的所有东西copy到2_0_50727里面。这样就有完整的路径 aspnet_client\system_web\2_0_50727\CrystalReportWebFormViewer3
然后复制所有的asp.net_client整个文件夹到您的网站发布的根目录里面
三、使用注意與時機:
四、備註:
源文件來源於: http://maxh168.blog.163.com/blog/static/118180964201191531439232/