在c#.net中找不到类型或命名空间名称'Document'(您是否缺少using指令或程序集引用?) [英] The type or namespace name 'Document' could not be found (are you missing a using directive or an assembly reference?) in c#.net

查看:1144
本文介绍了在c#.net中找不到类型或命名空间名称'Document'(您是否缺少using指令或程序集引用?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





如何克服此错误



类型或命名空间名称'文档'无法找到(你错过了使用指令或汇编引用吗?)在c#.net

Hi,

how can i overcome this error

The type or namespace name 'Document' could not be found (are you missing a using directive or an assembly reference?) in c#.net

推荐答案



For你必须添加一个.dll文件 - > iTextSharp.dll

添加itextsharp-all-5.4.2版本
Hi,
For that u have to add a .dll file-> iTextSharp.dll
add itextsharp-all-5.4.2 version


我遇到同样的问题然后我找到答案



首先要确保将iTextSharp.dll添加到引用中,然后在主窗体的开头添加


。使用 iTextSharp.text添加此



i am having the same problem then i find the answer

First of all be quiet sure that iTextSharp.dll is added to reference and

then at the starting of the main form. Add this

using iTextSharp.text;

using iTextSharp.text.pdf;





iTextSharp.text负责文档对象



iTextSharp.text is responsible for Document Object


use <%@ Assembly Name="iTextSharp, Version=4.1.6.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca"%>





根据您获得的文件更改版本



change the version as per the file you got


这篇关于在c#.net中找不到类型或命名空间名称'Document'(您是否缺少using指令或程序集引用?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆