未找到Telerik的报告名称空间

时间:2017-03-08 13:57:23

标签: c# visual-studio visual-studio-2008 telerik

我正在尝试将Telerik.NET framework 3.5Visual Studio 2008一起使用 我安装了Telerik Reporting但是当我尝试使用Telerik.Reporting时出现错误:

The type or namespace name 'Reporting' Doesn't exists in namespace 'Telerik' (are you missing an assembly reference?)

我该如何解决这个问题?

编辑

我尝试添加引用,但它阻止添加(路径为空):

enter image description here

1 个答案:

答案 0 :(得分:1)

您需要在参考资料中添加Telerik.Reporting.dll,如下图所示:

enter image description here

创建文件夹名称依赖并将这些文件复制到此文件夹:

Telerik.Reporting
Telerik.ReportViewer.WebForms
Telerik.Web.UI

现在点击引用,然后导航到Add Reference,然后会打开一个窗口。浏览到文件夹依赖项并添加所有这些dlls。添加dlls后,右键点击它们,确保其属性Copy Local设置为True

添加参考

enter image description here

从文件夹中选择dll。请注意,您可以为此文件夹添加任何名称。这只是因为如果您将来错过任何参考,您可以从项目内的此文件夹中再次添加它们。

enter image description here

右键点击引用的dll并导航到此处的属性,您可以将copy local定义为true

enter image description here