API Reference
Cmdlet
Get-OfficeExcelPageBreak
Gets manual row and column page breaks from Excel worksheets.
Remarks
Gets manual row and column page breaks from Excel worksheets.
Examples
List manual print page breaks.
PS>
$breaks = Get-OfficeExcelPageBreak -Path .\Report.xlsx -Sheet Data
$breaks |
Sort-Object Type, Position
Returns row and column page-break records for print-layout audits.
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.
Syntax
Get-OfficeExcelPageBreak [-Column] [-Row] [-Sheet <String>] [-SheetIndex <Nullable`1>] [<CommonParameters>]#Parameter set:
ContextParameters
- 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 Nullable`1
- Worksheet index (0-based) to inspect. Defaults to the current DSL sheet or all workbook sheets.
Outputs
System.Management.Automation.PSObject
Get-OfficeExcelPageBreak [-Column] -InputPath <String> [-Row] [-Sheet <String>] [-SheetIndex <Nullable`1>] [<CommonParameters>]#Parameter set:
PathParameters
- Column SwitchParameter
- Only return column page breaks.
- InputPath String
- Workbook path to inspect.
- Row SwitchParameter
- Only return row page breaks.
- Sheet String
- Worksheet name to inspect. Defaults to the current DSL sheet or all workbook sheets.
- SheetIndex Nullable`1
- Worksheet index (0-based) to inspect. Defaults to the current DSL sheet or all workbook sheets.
Outputs
System.Management.Automation.PSObject
Get-OfficeExcelPageBreak [-Column] -Document <ExcelDocument> [-Row] [-Sheet <String>] [-SheetIndex <Nullable`1>] [<CommonParameters>]#Parameter set:
DocumentParameters
- Column SwitchParameter
- Only return column page breaks.
- Document ExcelDocument
- Workbook to inspect outside the DSL context.
- Row SwitchParameter
- Only return row page breaks.
- Sheet String
- Worksheet name to inspect. Defaults to the current DSL sheet or all workbook sheets.
- SheetIndex Nullable`1
- Worksheet index (0-based) to inspect. Defaults to the current DSL sheet or all workbook sheets.
Outputs
System.Management.Automation.PSObject