public void addbody()
{
DateTime date = DateTime.Now;
string Date = Convert.ToString(date);
foreach (Student s in SelectedStudents)
{
iTextSharp.text.Font f = FontFactory.GetFont("Tahoma", 7f, 1);
PdfPCell pdfcl = new PdfPCell(new Phrase(s.ARN, f));
pdfcl.BorderColor = BaseColor.DARK_GRAY;
pdfcl.ExtraParagraphSpace = 0;
PdfPCell pdfcl1 = new PdfPCell(new Phrase(s.Name, f));
pdfcl.BorderColor = BaseColor.DARK_GRAY;
pdfcl.ExtraParagraphSpace = 0;
PdfPCell pdfcl2 = new PdfPCell(new Phrase(s.aggregate.ToString(), f));
pdfcl.BorderColor = BaseColor.DARK_GRAY;
pdfcl.ExtraParagraphSpace = 0;
PdfPCell pdfcl3 = new PdfPCell(new Phrase(s.department, f));
pdfcl.BorderColor = BaseColor.DARK_GRAY;
pdfcl.ExtraParagraphSpace = 0;
PdfPCell pdfcl4 = new PdfPCell(new Phrase(s.Email, f));
pdfcl.BorderColor = BaseColor.DARK_GRAY;
pdfcl.ExtraParagraphSpace = 0;
PdfPCell pdfcl5 = new PdfPCell(new Phrase(s.Category, f));
pdfcl.BorderColor = BaseColor.DARK_GRAY;
pdfcl.ExtraParagraphSpace = 0;
pdfcl.BorderWidth = 1f;
pdfcl1.BorderWidth = 1f;
pdfcl2.BorderWidth = 1f;
pdfcl3.BorderWidth = 1f;
pdfcl4.BorderWidth = 1f;
pdfcl5.BorderWidth = 1f;
pdfcl.BorderColor = BaseColor.GRAY;
pdfcl2.BorderColor = BaseColor.GRAY;
pdfcl1.BorderColor = BaseColor.GRAY;
pdfcl3.BorderColor = BaseColor.GRAY;
pdfcl4.BorderColor = BaseColor.GRAY;
pdfcl5.BorderColor = BaseColor.GRAY;
pdft.AddCell(pdfcl);
pdft.AddCell(pdfcl1);
pdft.AddCell(pdfcl2);
pdft.AddCell(pdfcl3);
pdft.AddCell(pdfcl4);
pdft.AddCell(pdfcl5);
}
iTextSharp.text.Font ff = FontFactory.GetFont("Arial", 7f);
ff.IsBold();
iTextSharp.text.Font fff = FontFactory.GetFont("Arial", 7f);
fff.SetStyle(4);
PdfPCell pdfcl11 = new PdfPCell(new Phrase("@ all copy Rights reserved, www.uet.edu.pk"));
pdfcl11.Colspan = 3;
pdfcl11.Border = 0;
PdfPCell pdfcl12 = new PdfPCell(new Phrase(Date));
pdfcl12.Colspan = 3;
pdfcl12.Border = 0;
pdfcl11.PaddingTop = 50f;
pdfcl12.PaddingTop = 50f;
pdft.AddCell(pdfcl11);
pdft.AddCell(pdfcl12);
}