Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

ConvertFrom-OfficeOpenDocument

Module PSWriteOffice
Inputs
None

Converts native ODT, ODS, or ODP content to Word, Excel, or PowerPoint with fidelity evidence.

Syntax

ConvertFrom-OfficeOpenDocument [-ExcelOptions <ExcelOpenDocumentConversionOptions>] [-FailOnLoss] [-OutputPath] <String> [-Path] <String> [-PowerPointOptions <PowerPointOpenDocumentConversionOptions>] [-WordOptions <WordOpenDocumentConversionOptions>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

Convert an ODS spreadsheet to Excel.

$options = New-OfficeExcelOpenDocumentOptions -IncludeBasicStyles -MaximumExpandedCells 250000
ConvertFrom-OfficeOpenDocument -Path .\Status.ods -OutputPath .\Status.xlsx -ExcelOptions $options

Parameters

-ExcelOptions ExcelOpenDocumentConversionOptions optional
Optional ODS-to-Excel conversion settings.
-FailOnLoss SwitchParameter optional
Throw when the conversion approximates, skips, or cannot map a feature.
-OutputPath String requiredposition: 1
Destination DOCX, XLSX, or PPTX path.
-Path String requiredposition: 0
Path to an ODT, ODS, or ODP file.
-PowerPointOptions PowerPointOpenDocumentConversionOptions optional
Optional ODP-to-PowerPoint conversion settings.
-WordOptions WordOpenDocumentConversionOptions optional
Optional ODT-to-Word conversion settings.

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.