开发者

itext 5.1 objects missing

I updated my iText dll from 4.x to 5.x and there's no objects for Table, Cell, and H开发者_开发百科eaderFooter. Were these deprecated or something? Is there a quick way to convert to newer way? Any insight welcomed.

DateTime previousDate = list[0].StartDateTime;
                Table headerTable = new Table(1, 1);
                Cell headerCell = new Cell(list[0].TimeZoneStartDateTime.ToLongDateString());
                headerCell.BackgroundColor = Color.LIGHT_GRAY;
                headerTable.AddCell(headerCell);
                headerTable.Padding = 3;
                headerTable.Width = 100;
                headerTable.SetAlignment("Left");


Try iTextSharp.text.pdf.PdfPTable and iTextSharp.text.pdf.PdfPCell.

Here's an example of how to use them.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜