开发者

itext 5.1 objects missing

开发者 https://www.devze.com 2023-03-14 15:19 出处:网络
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 i

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

精彩评论

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

关注公众号