首页 > 解决方案 > 无法使用 .net 使用 itext7 创建表

问题描述

我正在使用以下内容创建表:

Dim ColWidths() As Single = {10.0, 20.0, 70.0}
Dim tbl As Table = New Table(UnitValue.PERCENT, ColWidths, False)

但我得到这个编译时错误:

Overload resolution failed because no accessible 'New' accepts this number of arguments.

但是,此构造函数与文档中定义的第四个构造函数相同。

我究竟做错了什么?

编辑 1

http://itextsupport.com/apidocs/itext7/latest/

在左下方的 ListBox 中,向下滑动并单击 Table。在右侧窗格中,向下滑动到“Constructors”查看第 4 个构造函数:

Table(UnitValue[] columnWidths, boolean largeTable)
Constructs a Table with the preferable column widths.

标签: vb.netitext7

解决方案


推荐阅读