# Get-OfficeExcelPageBreak

Lists manual print page breaks without changing a workbook.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Excel.ExcelDocument` `System.String[]`

**Outputs**

`PSWriteOffice.Models.Excel.ExcelPageBreakInfo`

**Source**

[GetOfficeExcelPageBreakCommand.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Excel/GetOfficeExcelPageBreakCommand.cs#L24) 

Lists manual print page breaks without changing a workbook.

## Syntax

```
Get-OfficeExcelPageBreak
[-Column]
[-Document <ExcelDocument>]
[-Row]
[-Sheet <OfficeSheetSelector[]>]
[<CommonParameters>]
```

[#](#method-get-officeexcelpagebreak-switchparameter-exceldocument-switchparameter-officesheetselector)

Parameter set: `Document`

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

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

Parameter set: `Path`

```
Get-OfficeExcelPageBreak
[-Column]
-LiteralPath <String[]>
[-Row]
[-Sheet <OfficeSheetSelector[]>]
[<CommonParameters>]
```

[#](#method-get-officeexcelpagebreak-switchparameter-string-switchparameter-officesheetselector-2)

Parameter set: `LiteralPath`

## Examples

### List page breaks in literal workbook files.

```powershell
Get-ChildItem ./Reports -Filter *.xlsx | Get-OfficeExcelPageBreak -Sheet 'Report*'
```

### List manual page breaks

```powershell
Get-OfficeExcelPageBreak -Path .\Reports\Inventory.xlsx
```

Shows the manual row and column page breaks of every sheet.

### Check row breaks on one sheet

```powershell
Get-OfficeExcelPageBreak -Path .\Reports\Inventory.xlsx -Sheet Servers -Row
```

Lists only the row breaks of the Servers sheet before the report is sent to print.

## Parameters

**-Column SwitchParameter optional**

Include column breaks; neither switch or both switches includes both kinds.

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

Caller-owned workbook; omission uses the enclosing Excel content block.

**-Row SwitchParameter optional**

Include row breaks; neither switch or both switches includes both kinds.

**-Sheet OfficeSheetSelector[] optionalaliases: WorksheetName**

Worksheet names, wildcard patterns, one-based positions or native worksheet objects.

**-Path String[] requiredposition: 0pipeline: True (ByValue)aliases: FilePathsets: Path**

Workbook paths, including filesystem wildcard patterns.

**-LiteralPath String[] requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath**

Literal workbook paths. FileInfo.FullName and provider PSPath bind here.

## 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).

## Outputs

PSWriteOffice.Models.Excel.ExcelPageBreakInfo: A manual print page-break snapshot that remains readable after its source workbook is closed.

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