Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. Table table = new Table();
  2. section.AddParagraph(m_tableTitle);
  3. Unit width = section.PageSetup.PageWidth;
  4.  
  5. for (int col = 0; col < getMaxColumn(); col++)
  6. {
  7. table.AddColumn();
  8.  
  9. }
  10.  
  11. try
  12. {
  13. for (int _row = 0; _row < getMaxRow(); _row++)
  14. {
  15. table.AddRow();
  16. }
  17.  
  18.  
  19. table.Borders.Visible = true;
  20. table.SetEdge(0, 0, 0, 0, Edge.Box, BorderStyle.Single, 0.75, MigraDoc.DocumentObjectModel.Color.Empty);
  21.  
  22. // add the created Table to the PdfDocument
  23. section.Add(table);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement