【发布时间】:2013-03-23 20:04:45
【问题描述】:
我希望我的列的宽度是自动大小,但我知道这是不可能的,所以我尝试使用函数 MeasureString 没有成功。
这是我的代码:
Document doc = new Document(PageSize.A4, 20, 20, 72, 72);
doc.Open();
PdfPTable t=new PdfPTable(2);
//Here I want to know the size of the column.
.
.
.
doc.Close();
我知道我需要一个对象来设置函数MeasureString,但我不知道是哪个对象。
【问题讨论】:
标签: c# itextsharp