【发布时间】:2015-11-25 10:50:40
【问题描述】:
如何在 iTextSharp 中设置 PdfPTable 的高度
我下载了最新版本的 iTextSharp dll。
我生成了一个 PdfPTable 对象,我必须设置它的单元格高度。
我试过了:
table = new PdfPTable(colCount);
table.HorizontalAlignment = 1;
table.WidthPercentage = 100;
table.TotalHeight = 20000f;
但没有成功,因为例外是:
Can not assign a value to the property or to the indexer 'iTextSharp.text.pdf.PdfPTable.TotalHeight' because it is read-only.
我该怎么做?
请帮助我,非常感谢您-
【问题讨论】:
标签: c# itextsharp