Cmdlet
New-OfficeExcelOpenDocumentOptions
Creates Excel/OpenDocument conversion settings.
Syntax
New-OfficeExcelOpenDocumentOptions
[-IncludeBasicStyles]
[-LossPolicy <ReportOnly| ThrowOnSkippedOrUnsupported| ThrowOnAnyLoss>]
[-MaximumColumns <Int32>]
[-MaximumExpandedCells <Int64>]
[-MaximumRows <Int32>]
[<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Convert a bounded worksheet area with basic styles.
$options = New-OfficeExcelOpenDocumentOptions -IncludeBasicStyles -MaximumRows 10000 -MaximumColumns 100
ConvertTo-OfficeOpenDocument -Path .\Data.xlsx -OutputPath .\Data.ods -ExcelOptions $optionsParameters
- -IncludeBasicStyles SwitchParameter
- Copy common font, fill, and number-format styles.
- -LossPolicy OdfConversionLossPolicy
- Whether conversion loss is reported or rejected.
- Possible values:
ReportOnly,ThrowOnSkippedOrUnsupported,ThrowOnAnyLoss - -MaximumColumns Int32
- Maximum spreadsheet columns.
- -MaximumExpandedCells Int64
- Maximum cells materialized during conversion.
- -MaximumRows Int32
- Maximum spreadsheet rows.
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.