請問大家如何解決 SAP CrystalReport 版本問題?
我想解決 Crystal Report 的兩個問題
我嘗試在 NuGet 找到幾個非官方SAP
維護的套件,命令如下
Install-Package CrystalReports.Shared -Version 13.0.4000
Install-Package CrystalReports.Engine -Version 13.0.4000
Install-Package CrystalReports.ReportSource -Version 13.0.4000
版本也只有 : 13.0.4000、13.0.3501、13.0.3500
連結 : NuGet Gallery | CrystalReports.Engine 13.0.4000
但還是會遇到以下錯誤
Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
把 C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\ 裡的這幾個DLL都加入專案參考(必需安裝SAP Crystal SDK相應版本),DLL清單在下圖
要把各參考都設定屬性,特定版本跟不複製到本機
再試試能否解決你的問題
有點看不懂你所說的有缺少 DLL 就只能 NuGet 去下載。
CrystalReport SAP DLL 還是程式上 Google 找一下就有了,以下網址都是可以下載..
https://www.tektutorialshub.com/crystal-reports/install-crystal-reports-visual-studio/
https://origin.softwaredownloads.sap.com/public/site/index.html
你再看看可不可以用