| external help file | PSWriteOffice-help.xml |
|---|---|
| Module Name | PSWriteOffice |
| online version | https://github.com/EvotecIT/PSWriteOffice |
| schema | 2.0.0 |
Sets the page orientation on a worksheet.
Set-OfficeExcelOrientation [-Orientation] <ExcelPageOrientation> [-PassThru] [<CommonParameters>]Set-OfficeExcelOrientation [-Orientation] <ExcelPageOrientation> -Document <ExcelDocument> [-Sheet <string>] [-SheetIndex <int>] [-PassThru] [<CommonParameters>]Sets the page orientation on a worksheet.
PS>ExcelSheet 'Data' { Set-OfficeExcelOrientation -Orientation Landscape }Configures the sheet to print in landscape.
Workbook to operate on outside the DSL context.
Type: ExcelDocument
Parameter Sets: Document
Aliases: None
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: TrueOrientation to apply.
Type: ExcelPageOrientation
Parameter Sets: Context, Document
Aliases: None
Possible values: Portrait, Landscape
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueEmit the worksheet after applying the orientation.
Type: SwitchParameter
Parameter Sets: Context, Document
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueWorksheet name when using Document.
Type: String
Parameter Sets: Document
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueWorksheet index (0-based) when using Document.
Type: Nullable`1
Parameter Sets: Document
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
OfficeIMO.Excel.ExcelDocument
System.Object
- None