[ad_1]
よう皆、
Crystal Reports for Visual Studio 2010 – Complete Package (EXE) を http://www.sdn.sap.com/irj/sdn/crystalreports-dotnet にインストールします。
参考にさせていただきます、
CrystalDecisions.CrystalReports.Engine
CrystalDecisions.ReportSource
CrystalDecisions.Shared
CrystalDecisions.Windows.Forms
CrystalDecisions.VSDesigner の
C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\
次に、プロジェクトに CrystalReport2.rpt を追加します。 しかし、私は非常に多くのエラーが発生しました。
Error 1 The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?) D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs 14 11 User Error 2 The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?) D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs 15 11 User Error 3 The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?) D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs 16 11 User Error 4 The type or namespace name 'ReportClass' could not be found (are you missing a using directive or an assembly reference?) D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs 19 35 User Error 5 The type or namespace name 'ICachedReport' could not be found (are you missing a using directive or an assembly reference?) D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs 93 52 User Error 6 The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?) D:\Jagadeeswaran\Project\User\User\FeedbackReport.xaml.cs 14 7 User Error 7 The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?) D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs 53 16 User Error 8 The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?) D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs 61 16 User Error 9 The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?) D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs 69 16 User Error 10 The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?) D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs 77 16 User Error 11 The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?) D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs 85 16 User Error 12 The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?) D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs 131 24 User Error 13 The type or namespace name 'RequestContext' could not be found (are you missing a using directive or an assembly reference?) D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs 137 53 User Error 21 The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?) D:\Jagadeeswaran\Project\User\User\obj\x86\Debug\FeedbackReport.g.cs 12 7 User
問題を解決するには?
Warning 14 The referenced assembly "CrystalDecisions.Windows.Forms, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. User Warning 15 The referenced assembly "CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. User Warning 16 The referenced assembly "CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. User Warning 17 The referenced assembly "CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. User Warning 18 The referenced assembly "CrystalDecisions.VSDesigner, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. User Warning 19 The referenced assembly "CrystalDecisions.VSDesigner, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. User Warning 20 The referenced assembly "CrystalDecisions.VSDesigner, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. User
問題を解決するには?
解決策 2
プロジェクトのプロパティに移動し、
.Net フレームワーク 4 としてターゲット フレームワークを選択します。
および x86 または x64 としてのプラットフォーム ターゲットは使用しません。
解決策 1
私はWPFで働いたことはありません。 ただし、これらは通常の win/web アプリケーションの解決策であるため、以下のエラーの解決済みリンクを提供します。
The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)
それでも問題が解決しない場合は、お知らせください。
解決策 8
抜群のシェア! これだけ転送しました
これについて少し宿題をしていた同僚に。
そして、私が彼のために朝食を見つけたので、彼は実際に私に朝食を注文しました…
笑。 だから私はこれを言い換えさせてください….食事をありがとう! でもええ、使ってくれてありがとう
あなたのウェブサイトでこの問題について話し合う時間です。 ゴゾ休暇
解決策 5
これを試して
By Ahmed Omer のように、framework をクライアント バージョンではなく 4.0 に設定します。
また、プラットフォームを 64 ビットまたは 32 ビットに設定します。
解決策 3
こんにちは。
これを試して
フレームワークをクライアント バージョンではなく 4.0 に設定します。 また、プラットフォームを Any ではなく X86 または X64 に設定します。
ありがとう
[ad_2]
コメント