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.
精彩评论