this code not working can any help Document document = new Document(); try { System.IO.MemoryStream msReport = new System.IO.MemoryStream(); PdfWriter writer = PdfWriter.GetInstance(document, msReport); document.Open(); iTextSharp.text.Table datatable = new iTextSharp.text.Table(8); datatable.Padding = 4; datatable.Spacing = 0; //datatable.setBorder(Rectangle.NO_BORDER); float[] headerwidths = { 50, 50, 50, 50, 50, 40, 40, 45 }; datatable.Widths = headerwidths; datatable.WidthPercentage = 100; Cell cell = new Cell(new Phrase("Applicant Wise Report", FontFactory.GetFont(FontFactory.HELVETICA, 15 ,Font.BOLD))); cell.HorizontalAlignment = Element.ALIGN_CENTER; cell.Leading = 15; cell.Colspan = 8; cell.Border = Rectangle.NO_BORDER; cell.BackgroundColor = new Color(0xC0, 0xC0, 0xC0); datatable.AddCell(cell); datatable.DefaultCellBorderWidth = 1; datatable.DefaultHorizontalAlignment = 1; datatable.DefaultRowspan = 1; datatable.AddCell(new Phrase("Name", FontFactory.GetFont(FontFactory.TIMES, 11, Font.BOLD))); datatable.AddCell(new Phrase("Address", FontFactory.GetFont(FontFactory.TIMES, 11, Font.BOLD))); datatable.AddCell(new Phrase("State", FontFactory.GetFont(FontFactory.TIMES, 11, Font.BOLD))); datatable.AddCell(new Phrase("City", FontFactory.GetFont(FontFactory.TIMES, 11, Font.BOLD))); datatable.AddCell(new Phrase("Email ID", FontFactory.GetFont(FontFactory.TIMES, 11, Font.BOLD))); datatable.AddCell(new Phrase("Exam Attended", FontFactory.GetFont(FontFactory.TIMES, 11, Font.BOLD))); datatable.AddCell(new Phrase("Result Status", FontFactory.GetFont(FontFactory.TIMES, 11, Font.BOLD))); datatable.AddCell(new Phrase("Exam Date", FontFactory.GetFont(FontFactory.TIMES, 11, Font.BOLD))); datatable.DefaultCellBorderWidth = 1; datatable.DefaultRowspan = 1; if (Dt.Rows.Count > 0) { for (int i = 0; i <= Dt.Rows.Count - 1; i++) { datatable.DefaultHorizontalAlignment = Element.ALIGN_LEFT; string name = Convert.ToString(Dt.Rows[i][0]); datatable.AddCell(new Cell(new Phrase(name, FontFactory.GetFont(FontFactory.TIMES, 10, Font.NORMAL))),i+1,0); string address = Convert.ToString(Dt.Rows[i][1]); datatable.A
M
Member 3117172
@Member 3117172