[]
Adds a vertical page break within the print area.
The page break is aligned with the left edge of the specified range.
IVPageBreak Add(IRange Before)
Function Add(Before As IRange) As IVPageBreak
| Type | Name | Description |
|---|---|---|
| IRange | Before | The range whose left edge defines where the new page break is added.
If |
| Type | Description |
|---|---|
| IVPageBreak | The new IVPageBreak object, or |
worksheet.Range["A1:H2"].Value = new object[,] {
{"Name", "Q1", "Q2", "Q3", "Q4", "Total", "Region", "Status"},
{"Test", 100, 120, 140, 160, 520, "East", "Open"}
});
IVPageBreak pageBreak = worksheet.VPageBreaks.Add(worksheet.Range["F2"]);
| Type | Condition |
|---|---|
| ArgumentException | if |
| InvalidOperationException | if the maximum number of vertical page breaks has been reached. |