# Get-OfficeExcelPageBreak

Gets manual row and column page breaks from Excel worksheets.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

Aliases: ExcelPageBreaks

**Module**

`PSWriteOffice`

**Aliases**

`ExcelPageBreaks`

**Inputs**

`OfficeIMO.Excel.ExcelDocument`

**Outputs**

`System.Management.Automation.PSObject`

**Source**

[GetOfficeExcelPageBreakCommand.cs:19](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Excel/GetOfficeExcelPageBreakCommand.cs#L19) 

Gets manual row and column page breaks from Excel worksheets.

## Syntax

```
Get-OfficeExcelPageBreak
[-Column]
[-Row]
[-Sheet <String>]
[-SheetIndex <Int32>]
[<CommonParameters>]
```

[#](#method-get-officeexcelpagebreak-switchparameter-switchparameter-string-int32)

Parameter set: `Context`

```
Get-OfficeExcelPageBreak
[-Column]
[-Path] <String>
[-Row]
[-Sheet <String>]
[-SheetIndex <Int32>]
[<CommonParameters>]
```

[#](#method-get-officeexcelpagebreak-switchparameter-string-switchparameter-string-int32)

Parameter set: `Path`

```
Get-OfficeExcelPageBreak
[-Column]
-Document <ExcelDocument>
[-Row]
[-Sheet <String>]
[-SheetIndex <Int32>]
[<CommonParameters>]
```

[#](#method-get-officeexcelpagebreak-switchparameter-exceldocument-switchparameter-string-int32)

Parameter set: `Document`

## Examples

### List manual print page breaks.

```powershell
$breaks = Get-OfficeExcelPageBreak -Path .\Report.xlsx -Sheet Data
$breaks |
    Sort-Object Type, Position
```

Returns row and column page-break records for print-layout audits.

## Parameters

**-Column SwitchParameter optional**

Only return column page breaks.

**-Row SwitchParameter optional**

Only return row page breaks.

**-Sheet String optionalaliases: WorksheetName**

Worksheet name to inspect. Defaults to the current DSL sheet or all workbook sheets.

**-SheetIndex Int32 optional**

Worksheet index (0-based) to inspect. Defaults to the current DSL sheet or all workbook sheets.

**-Path String requiredposition: 0aliases: FilePath, InputPathsets: Path**

Workbook path to inspect.

**-Document ExcelDocument requiredpipeline: True (ByValue)sets: Document**

Workbook to inspect outside the DSL context.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:EEAB36D245743CBF76C8B3CD3363DC9DF523E64C45433A57D0A2EE028A2BA0B9 -->
