Cmdlet
Get-OfficeExcelPageBreak
Gets manual row and column page breaks from Excel worksheets.
Syntax
Get-OfficeExcelPageBreak
[-Column]
[-Row]
[-Sheet <String>]
[-SheetIndex <Int32>]
[<CommonParameters>]#Parameter set:
ContextGet-OfficeExcelPageBreak
[-Column]
[-Path] <String>
[-Row]
[-Sheet <String>]
[-SheetIndex <Int32>]
[<CommonParameters>]#Parameter set:
PathGet-OfficeExcelPageBreak
[-Column]
-Document <ExcelDocument>
[-Row]
[-Sheet <String>]
[-SheetIndex <Int32>]
[<CommonParameters>]#Parameter set:
DocumentExamples
List manual print page breaks.
$breaks = Get-OfficeExcelPageBreak -Path .\Report.xlsx -Sheet Data
$breaks |
Sort-Object Type, PositionReturns row and column page-break records for print-layout audits.
Parameters
- -Column SwitchParameter
- Only return column page breaks.
- -Row SwitchParameter
- Only return row page breaks.
- -Sheet String
- Worksheet name to inspect. Defaults to the current DSL sheet or all workbook sheets.
- -SheetIndex Int32
- Worksheet index (0-based) to inspect. Defaults to the current DSL sheet or all workbook sheets.
- -Path String
- Workbook path to inspect.
- -Document ExcelDocument
- 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.