We create a new table object passing in values to tell it what
rectangle it can occupy (it takes the current document rectangle)
and how many columns of data it should be prepared for.
Columns are assigned relative widths and expand horizontally to
fit the table rectangle. Here we're specifying six columns and a
number of relative widths. We're padding the cells so there are
gaps between the rows and columns. Finally we specify a header which
repeats as new pages are added.
[C#]
PDFTable theTable = new PDFTable(theDoc, 6);
// some columns extra width
theTable.SetColumnWidths(new double [] {2, 1, 3 , 2, 1, 4});
theTable.CellPadding = 5;
theTable.RepeatHeader = true;
[Visual Basic]
Dim theTable As PDFTable = New PDFTable(theDoc, 6)
' some columns extra width
theTable.SetColumnWidths(New Double() {2, 1, 3 , 2, 1, 4})
theTable.CellPadding = 5
theTable.RepeatHeader = True
|
|
|