# New-OfficeExcelOpenDocumentOptions

Creates Excel/OpenDocument conversion settings. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`None`

**Outputs**

`OfficeIMO.Excel.OpenDocument.ExcelOpenDocumentConversionOptions`

**Source**

[NewOfficeExcelOpenDocumentOptionsCommand.cs:16](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/OpenDocument/NewOfficeExcelOpenDocumentOptionsCommand.cs#L16) 

Creates Excel/OpenDocument conversion settings.

## Syntax

```
New-OfficeExcelOpenDocumentOptions
[-IncludeBasicStyles]
[-LossPolicy <ReportOnly|ThrowOnSkippedOrUnsupported|ThrowOnAnyLoss>]
[-MaximumColumns <Int32>]
[-MaximumExpandedCells <Int64>]
[-MaximumRows <Int32>]
[<CommonParameters>]
```

[#](#method-new-officeexcelopendocumentoptions-switchparameter-odfconversionlosspolicy-int32-int64-int32)

Parameter set: `All Parameter Sets`

## Examples

### Convert a bounded worksheet area with basic styles.

```powershell
$options = New-OfficeExcelOpenDocumentOptions -IncludeBasicStyles -MaximumRows 10000 -MaximumColumns 100
ConvertTo-OfficeOpenDocument -Path .\Data.xlsx -OutputPath .\Data.ods -ExcelOptions $options
```

## Parameters

**-IncludeBasicStyles SwitchParameter optional**

Copy common font, fill, and number-format styles.

**-LossPolicy OdfConversionLossPolicy optional**

Whether conversion loss is reported or rejected.

Possible values: `ReportOnly`, `ThrowOnSkippedOrUnsupported`, `ThrowOnAnyLoss`

**-MaximumColumns Int32 optional**

Maximum spreadsheet columns.

**-MaximumExpandedCells Int64 optional**

Maximum cells materialized during conversion.

**-MaximumRows Int32 optional**

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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:63B49B107D108C01E9B2EA5E14C012B9F3A21B607F691DA8A9364DEF711A6A46 -->
