未定义类型“iTextSharp.text.Table" [英] Type 'iTextSharp.text.Table' is not defined

查看:17
本文介绍了未定义类型“iTextSharp.text.Table"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道为什么未定义 Type 'iTextSharp.text.Table'.我已经导入了 iTextSharp.text 、 iTextSharp.text.pdf、 iTextSharp.text.html、 iTextSharp.text.html.simpleparser.

I want to know why Type 'iTextSharp.text.Table' is not defined. I already imported iTextSharp.text , iTextSharp.text.pdf, iTextSharp.text.html, iTextSharp.text.html.simpleparser.

将 gvTable 调暗为新 iTextSharp.text.Table(columns, tableRows)

Dim gvTable As New iTextSharp.text.Table(columns, tableRows)

推荐答案

在 Internet 上搜索时,我唯一能找到的关于 iTextSharp.Text.Table 的是示例代码.我查看了 SourceForge 上的 SVN,没有 Table 是文本命名空间的一部分,看起来它在当前版本中已被弃用.您最好的选择是使用 iTextSharp.text.pdf.PDFPTable.(来自 iText 链接的文档)或查找版本 5 之前的 iTextSharp 版本.如果您查看此 SO 问题/答案 有一个链接到 iTextSharp version 4.1.6 这个版本确实有 iTextSharp.text.Table.这里还有一个 博客,其中包含指向源代码和 dll 的链接.

In searching the Internet the only thing I could find about iTextSharp.Text.Table was example code. I looked at the SVN on SourceForge and there is no Table that is part of the text namespace, it looks like it was deprecated in the current version. Your best bet would be to use iTextSharp.text.pdf.PDFPTable. (Documentation from iText link) or to find a Version of iTextSharp previous to version 5. If you look at this SO Question/Answer there is a link to iTextSharp version 4.1.6 this version does have iTextSharp.text.Table. Here also is a blog that has links to the Source and dll.

这篇关于未定义类型“iTextSharp.text.Table"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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