Posted on: 7/30/2012 9:16:12 PM | Views : 1659

This is the code for my itextsharp pdf table, but i don't know how to set font size for the text in each cell ? Please help
PdfPTable table = new PdfPTable(9); table.WidthPercentage = 100; float[] widths = new float[] { 1.7f, 2f, 2f, 1.7f, 1.7f, 1.7f, 1.7f, 1.7f, 7f }; table.SetWidths(widths); table.HorizontalAlignment = 0; table.AddCell("Col 1 Row 1"); table.AddCell("Col 2 Row 1"); table.AddCell("Col 3 Row 1"); table.AddCell("Col 4 Row 1"); table.AddCell("Col 5 Row 1"); table.AddCell("Col 6 Row 1"); table.AddCell("Col 7 Row 1"); table.AddCell("Col 8 Row 1"); table.AddCell("Col 9 Row 1");


...

Go to the complete details ...