Table2.GetOverflowRows

Overloads

GetOverflowRows()Returns a Table2 object containing the overflow rows.
GetOverflowRows(Single, Single)Returns a Table2 object containing the overflow rows.
GetOverflowRows(Single, Single, Single, Single)Returns a Table2 object containing the overflow rows.

GetOverflowRows()

Returns a Table2 object containing the overflow rows.

public Table2 GetOverflowRows()
Function GetOverflowRows() As Table2

Returns

Table2

Returns a Table2 object.

Licensing Info

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Examples

The following example shows you how to use the GetOverflowRows 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, 200, 700)
        
        MyTable.Columns.Add(100)
        MyTable.Columns.Add(100)
        
        ' This loop populates the table
        Dim I As Integer
        For I = 1 To 400
            Dim MyRow As Row = MyTable.Rows.Add(20)
            MyRow.Cells.Add("Row #" & I)
            MyRow.Cells.Add("Item")
        Next
        			
        Do
            Dim MyPage As Page = New Page
            MyDocument.Pages.Add(MyPage)
            MyPage.Elements.Add(MyTable)
            MyTable = MyTable.GetOverflowRows()
        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, 200, 700 );

        table.Columns.Add( 100 );
        table.Columns.Add( 100 );

        // This loop populates the table 
        for ( int i = 1; i <= 400; i++ )
        {
            Row2 row = table.Rows.Add( 20 );
            row.Cells.Add( "Row #" + i );
            row.Cells.Add( "Item" );
        }

        do
        {
            Page page = new Page();
            document.Pages.Add( page );
            page.Elements.Add( table );
            table = table.GetOverflowRows();
        } while ( table != null );

        // Save the PDF
        document.Draw( outputPath );
    }
}

Remarks

This method returns a new Table2 object that contains the remaining rows that did not fit.

GetOverflowRows(Single, Single)

Returns a Table2 object containing the overflow rows.

public Table2 GetOverflowRows(float x, float y)
Function GetOverflowRows(x As Single, y As Single) As Table2

Parameters

x
Single

X coordinate of the new table.

y
Single

Y coordinate of the new table.

Returns

Table2

Returns a Table2 object.

Licensing Info

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Examples

The following example shows you how to use the GetOverflowRows 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, 200, 700)
        
        MyTable.Columns.Add(100)
        MyTable.Columns.Add(100)
        
        ' This loop populates the table
        Dim I As Integer
        For I = 1 To 400
            Dim MyRow As Row = MyTable.Rows.Add(20)
            MyRow.Cells.Add("Row #" & I)
            MyRow.Cells.Add("Item")
        Next
        			
        Do
            Dim MyPage As Page = New Page
            MyDocument.Pages.Add(MyPage)
            MyPage.Elements.Add(MyTable)
            MyTable = MyTable.GetOverflowRows(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, 200, 700 );

        table.Columns.Add( 100 );
        table.Columns.Add( 100 );

        // This loop populates the table 
        for ( int i = 1; i <= 400; i++ )
        {
            Row2 row = table.Rows.Add( 20 );
            row.Cells.Add( "Row #" + i );
            row.Cells.Add( "Item" );
        }

        do
        {
            Page page = new Page();
            document.Pages.Add( page );
            page.Elements.Add( table );
            table = table.GetOverflowRows( 30, 30 );
        } while ( table != null );

        // Save the PDF
        document.Draw( outputPath );
    }
}

Remarks

This method returns a new Table2 object that contains the remaining rows that did not fit. This new table will be assigned the specified values for x and y.

GetOverflowRows(Single, Single, Single, Single)

Returns a Table2 object containing the overflow rows.

public Table2 GetOverflowRows(float x, float y, float width, float height)
Function GetOverflowRows(x As Single, y As Single, width As Single, height As Single) As Table2

Parameters

x
Single

X coordinate of the new table.

y
Single

Y coordinate of the new table.

width
Single

Width of the new table.

height
Single

Height of the new table.

Returns

Table2

Returns a Table2 object.

Licensing Info

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Examples

The following example shows you how to use the GetOverflowRows 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, 200, 700)
        
        MyTable.Columns.Add(100)
        MyTable.Columns.Add(100)
        
        ' This loop populates the table
        Dim I As Integer
        For I = 1 To 400
        Dim MyRow As Row = MyTable.Rows.Add(20)
            MyRow.Cells.Add("Row #" & I)
            MyRow.Cells.Add("Item")
        Next
        			
        Do
            Dim MyPage As Page = New Page
            MyDocument.Pages.Add(MyPage)
            MyPage.Elements.Add(MyTable)
            MyTable = MyTable.GetOverflowRows(50, 50, 200, 350)
        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, 200, 700 );

        table.Columns.Add( 100 );
        table.Columns.Add( 100 );

        // This loop populates the table 
        for ( int i = 1; i <= 400; i++ )
        {
            Row2 row = table.Rows.Add( 20 );
            row.Cells.Add( "Row #" + i );
            row.Cells.Add( "Item" );
        }

        do
        {
            Page page = new Page();
            document.Pages.Add( page );
            page.Elements.Add( table );
            table = table.GetOverflowRows( 50, 50, 200, 350 );
        } while ( table != null );

        // Save the PDF
        document.Draw( outputPath );
    }
}

Remarks

This method returns a new Table2 object that contains the remaining rows that did not fit. This new table will be assigned the specified values for x, y, height and width.

See Also

Table2
ceTe.DynamicPDF.PageElements

In this topic