vb.net - 无法使用 .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.
解决方案
推荐阅读
- python - Display Pandas Dataframe in Tkinter Listbox
- node.js - Sending private message to user with socket.io
- wordpress - wordpress 中 register_custom _post 中标签和参数的辅助参数也有什么关系?
- verilog - Sync FIFO simulation does not work as expected
- html - 如何使用 jinja2 语法从gentlest() 方法中获取单选按钮值?
- docker - 无法在具有 Linux Runner 的 Docker 容器中执行 GO 二进制文件
- python - 如何在 colab 中实现命令行参数?
- python - multiprocessing.Pool().map 工作函数错误中参数的多个值
- r - 如何过滤R中数据框每一列中的NA
- python - Python 脚本能否在其自身死亡时产生一个新进程?