Search Results for

    Show / Hide Table of Contents

    ExcelFile.InsertVPageBreak Method

    Overloads

    • ExcelFile.InsertVPageBreak(Int32)
    • ExcelFile.InsertVPageBreak(Int32, Boolean)

    ExcelFile.InsertVPageBreak(Int32)

    Inserts a Vertical Page Break at the specified column. If there is one already, it will do nothing. If the number of pagebreaks is bigger than the maximum Excel can admit, it will add it anyway, but you might get an exception when saving the file as xls. Exporting as images or PDF will use those additional page breaks. To control what to do when there are too many page breaks, see ErrorActions

    Syntax

    Namespace: FlexCel.Core

    public void InsertVPageBreak(Int32 col)

    Parameters

    <-> Parameter Type Description
    col Int32 Column where to insert the page break All column numbers are 1-based, and the breaks occur after the column.
    Note that col can be 0, and this would mean a page break before column 1. (which Excel will ignore)

    See also

    • ExcelFile

    ExcelFile.InsertVPageBreak(Int32, Boolean)

    Inserts a Vertical Page Break at the specified column. If there is one already, it will do nothing. If the number of pagebreaks is bigger than the maximum Excel can admit, it will add it anyway, but you might get an exception when saving the file as xls. Exporting as images or PDF will use those additional page breaks. To control what to do when there are too many page breaks, see ErrorActions

    Syntax

    Namespace: FlexCel.Core

    public abstract void InsertVPageBreak(Int32 col, Boolean aGoesAfter)

    Parameters

    <-> Parameter Type Description
    col Int32 Column where to insert the page break All column numbers are 1-based, and the breaks occur after the column.
    Note that col can be 0, and this would mean a page break before column 1. (which Excel will ignore)
    aGoesAfter Boolean This is used by FlexCelReport to add page breaks that behave as if they affected the next column, not the column to the left.

    See also

    • ExcelFile
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com