Creating Tables in PDF DocumentsThe following code snippet creates a table on a PDF document. c# sample: PDFDocument MyPDF = new PDFDocument("Tables.pdf"); Table table = new Table(2,2); table.DisplayHeader = true; table.column(0).header.SetValue("Name"); table.column(1).header.SetValue("Surname"); table.cell(0, 0).SetValue("John"); table.cell(0, 1).SetValue("Smith"); table.cell(1, 0).SetValue("Joe"); table.cell(1, 1).SetValue("Doe"); MyPDF.CurrentPage.Body.DrawTable(table); MyPDF.Save(); |
PDF .NET Library for .NET Software Developers - PDF Component Library for C#, VB.NET and ASP.NET developers Copyright © PDF Technologies Inc., 2010. |