Table2.GetOverflowColumns
Overloads
GetOverflowColumns() | Returns a Table2 object containing the overflow columns. |
GetOverflowColumns(Single, Single) | Returns a Table2 object containing the overflow columns. |
GetOverflowColumns(Single, Single, Single, Single) | Returns a Table2 object containing the overflow columns. |
GetOverflowColumns()
Returns a Table2 object containing the overflow columns.
public Table2 GetOverflowColumns()
Function GetOverflowColumns() As Table2
Returns
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Examples
The following example shows you how to use the GetOverflowColumns method to allow tables of variable length to flow onto new pages as needed.Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements
Module MyModule
Sub Main()
' Create a PDF Document
Dim MyDocument As Document = New Document
Dim MyTable As Table = New Table(0, 0, 500, 50)
' Create some number of columns
Dim Cols As Integer = 50
Dim Int As Integer
For Int = 0 To Cols
MyTable.Columns.Add(100)
Next
' Create your rows to fill in
Dim MyRow1 As Row = MyTable.Rows.Add(20)
Dim MyRow2 As Row = MyTable.Rows.Add(20)
Dim J As Integer
For J = 1 To Cols
MyRow1.Cells.Add("Column #" & J)
MyRow2.Cells.Add("Item")
Next
Do
Dim MyPage As Page = New Page
MyDocument.Pages.Add(MyPage)
MyPage.Elements.Add(MyTable)
MyTable = MyTable.GetOverflowColumns()
Loop While Not (MyTable Is Nothing)
' Save the PDF
MyDocument.Draw("C:\MyDocument.pdf")
End Sub
End Module
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements;
public class Example
{
public static void CreatePDF(string outputPath)
{
// Create a PDF Document
Document document = new Document();
Table2 table = new Table2( 0, 0, 500, 50 );
// Create some number of columns
int columnCount = 50;
for( int i = 0; i <= columnCount; i++ )
table.Columns.Add( 100 );
// Create your rows to fill in
Row2 row1 = table.Rows.Add( 20 );
Row2 row2 = table.Rows.Add( 20 );
for( int j = 0; j <= columnCount; j++ )
{
row1.Cells.Add( "Column #" + j );
row2.Cells.Add( "Item" );
}
do
{
Page page = new Page();
document.Pages.Add( page );
page.Elements.Add( table );
table = table.GetOverflowColumns();
} while ( table != null );
// Save the PDF
document.Draw( outputPath );
}
}
Remarks
This method returns a new Table2 object that contains the remaining columns that did not fit.
GetOverflowColumns(Single, Single)
Returns a Table2 object containing the overflow columns.
public Table2 GetOverflowColumns(float x, float y)
Function GetOverflowColumns(x As Single, y As Single) As Table2
Parameters
X coordinate of the new table.
Y coordinate of the new table.
Returns
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Examples
The following example shows you how to use the GetOverflowColumns method to allow tables of variable length to flow onto new pages as needed.Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements
Module MyModule
Sub Main()
' Create a PDF Document
Dim MyDocument As Document = New Document
Dim MyTable As Table = New Table(0, 0, 500, 50)
' Create some number of columns
Dim Cols As Integer = 50
Dim Int As Integer
For Int = 0 To Cols
MyTable.Columns.Add(100)
Next
' Create your rows to fill in
Dim MyRow1 As Row = MyTable.Rows.Add(20)
Dim MyRow2 As Row = MyTable.Rows.Add(20)
Dim J As Integer
For J = 1 To Cols
MyRow1.Cells.Add("Column #" & J)
MyRow2.Cells.Add("Item")
Next
Do
Dim MyPage As Page = New Page
MyDocument.Pages.Add(MyPage)
MyPage.Elements.Add(MyTable)
MyTable = MyTable.GetOverflowColumns(50, 50)
Loop While Not (MyTable Is Nothing)
' Save the PDF
MyDocument.Draw("C:\MyDocument.pdf")
End Sub
End Module
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements;
public class Example
{
public static void CreatePDF(string outputPath)
{
// Create a PDF Document
Document document = new Document();
Table2 table = new Table2( 0, 0, 500, 50 );
// Create some number of columns
int columnCount = 50;
for( int i = 0; i <= columnCount; i++ )
table.Columns.Add( 100 );
// Create your rows to fill in
Row2 row1 = table.Rows.Add( 20 );
Row2 row2 = table.Rows.Add( 20 );
for( int j = 0; j <= columnCount; j++ )
{
row1.Cells.Add( "Column #" + j );
row2.Cells.Add( "Item" );
}
do
{
Page page = new Page();
document.Pages.Add( page );
page.Elements.Add( table );
table = table.GetOverflowColumns( 50, 50 );
} while ( table != null );
// Save the PDF
document.Draw( outputPath );
}
}
Remarks
This method returns a new Table2 object that contains the remaining columns that did not fit. This new table will be assigned the specified values for x and y.
GetOverflowColumns(Single, Single, Single, Single)
Returns a Table2 object containing the overflow columns.
public Table2 GetOverflowColumns(float x, float y, float width, float height)
Function GetOverflowColumns(x As Single, y As Single, width As Single, height As Single) As Table2
Parameters
X coordinate of the new table.
Y coordinate of the new table.
- width
- Single
Width of the new table.
- height
- Single
Height of the new table.
Returns
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Examples
The following example shows you how to use the GetOverflowColumns method to allow tables of variable length to flow onto new pages as needed.Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements
Module MyModule
Sub Main()
' Create a PDF Document
Dim MyDocument As Document = New Document
Dim MyTable As Table = New Table(0, 0, 500, 50)
' Create some number of columns
Dim Cols As Integer = 50
Dim Int As Integer
For Int = 0 To Cols
MyTable.Columns.Add(100)
Next
' Create your rows to fill in
Dim MyRow1 As Row = MyTable.Rows.Add(20)
Dim MyRow2 As Row = MyTable.Rows.Add(20)
Dim J As Integer
For J = 1 To Cols
MyRow1.Cells.Add("Column #" & J)
MyRow2.Cells.Add("Item")
Next
Do
Dim MyPage As Page = New Page
MyDocument.Pages.Add(MyPage)
MyPage.Elements.Add(MyTable)
MyTable = MyTable.GetOverflowColumns(50, 50, 250, 50)
Loop While Not (MyTable Is Nothing)
' Save the PDF
MyDocument.Draw("C:\MyDocument.pdf")
End Sub
End Module
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements;
public class Example
{
public static void CreatePDF(string outputPath)
{
// Create a PDF Document
Document document = new Document();
Table2 table = new Table2( 0, 0, 500, 50 );
// Create some number of columns
int columnCount = 50;
for( int i = 0; i <= columnCount; i++ )
table.Columns.Add( 100 );
// Create your rows to fill in
Row2 row1 = table.Rows.Add( 20 );
Row2 row2 = table.Rows.Add( 20 );
for( int j = 0; j <= columnCount; j++ )
{
row1.Cells.Add( "Column #" + j );
row2.Cells.Add( "Item" );
}
do
{
Page page = new Page();
document.Pages.Add( page );
page.Elements.Add( table );
table = table.GetOverflowColumns( 50, 50, 250, 50 );
} while ( table != null );
// Save the PDF
document.Draw( outputPath );
}
}
Remarks
This method returns a new Table2 object that contains the remaining columns that did not fit. This new table will be assigned the specified values for x, y, height and width.