[英]The name 'InitializeComponent' does not exist in the current context error after opening WPF project with Visual Studio 2015
[英]The type name does not exist while opening an old project in Visual studio
我的C#项目之一包含许多水晶报表。 所有报告均在我的计算机上完成,并且运行良好。 但是在全新安装Windows之后,我已经安装了Visual Studio 2010,Crystal Report 13.0.13和sql server 2008 r2。 但是我无法在Visual Studio中运行我的项目。 它显示以下错误。
错误1:类型'WindowsFormsApplication1.CrystalDecisions'中不存在类型名称'ReportSource'
错误2:类型名称“ CrystalReports”在类型“ WindowsFormsApplication1.CrystalDecisions”中不存在D:\\ Completing \\ WindowsFormsApplication1 \\ led.cs
错误3:类型名称“ Shared”不存在
错误4:找不到类型或名称空间名称'ReportClass'(是否缺少using指令或程序集引用?)D:\\ Completing \\ WindowsFormsApplication1 \\ led.cs
这些是错误。 但是我已经将这些命名空间添加到项目参考中。 但是给出相同的错误是行不通的。 项目目标框架是“ .NET Framework 4”。 我无法摆脱这些错误。 谁能帮我摆脱这些困境。
重新安装安装程序后,与报告的连接可能已更改,请尝试为报告连接字符串提供正确的连接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.