【发布时间】:2013-06-03 21:20:47
【问题描述】:
我试图创建ItextSharp 表
表格格式让我抓狂
这是我的代码,到目前为止它非常简单
Dim objTable As PdfPTable = New PdfPTable(3)
objTable.AddCell("1")
objTable.AddCell("2")
objTable.AddCell("3")
Dim xp As Phrase = New Phrase("1.5 A")
Dim x As PdfPCell = New PdfPCell(xp)
x.Colspan = 1.5
objTable.AddCell(x)
Dim yp As Phrase = New Phrase("1.5 B")
Dim y As PdfPCell = New PdfPCell(yp)
y.Colspan = 1.5
objTable.AddCell(y)
这会生成下表
问题 最好的方法是什么 - 如果有的话 - 使第二行具有相等的列
让他们变成这样
就在中间?
【问题讨论】: