Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. iTextSharp.text.Paragraph titolo = new iTextSharp.text.Paragraph(currentVuln.Title, _fontTitolo0);
  2. titolo.Alignment = iTextSharp.text.Element.ALIGN_CENTER;
  3. _document.Add(titolo);
  4.  
  5. table = new PdfPTable(3);
  6. table.WidthPercentage = 98;
  7.  
  8. cell = new PdfPCell(new Phrase("Header spanning 3 columns"));
  9. cell.Colspan = 3;
  10. cell.HorizontalAlignment = 1; //0=Left, 1=Centre, 2=Right
  11. table.AddCell(cell);
  12.  
  13. table.AddCell("Col 1 Row 1");
  14. table.AddCell("Col 2 Row 1");
  15. table.AddCell("Col 3 Row 1");
  16. table.AddCell("Col 1 Row 2");
  17. table.AddCell("Col 2 Row 2");
  18. table.AddCell("Col 3 Row 2");
  19.  
  20. _document.Add(table);
  21.  
  22. titolo.SpacingAfter = 20;
  23.  
  24. table.SpacingBefore = 20;
  25.  
  26. iTextSharp.text.Paragraph titolo = new iTextSharp.text.Paragraph("Hello Worldnn");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement