Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Close-OfficeOpenDocument

Module
PSWriteOffice
Inputs
OfficeIMO.OpenDocument.OdfDocument
Outputs
System.Void

Releases a live OpenDocument document without saving.

Syntax

Close-OfficeOpenDocument
-Document <OdfDocument>
[<CommonParameters>]
#
Parameter set: Document

Examples

Release a document.

Close-OfficeOpenDocument -Document $document

Parameters

-Document OdfDocument requiredpipeline: True (ByValue)
Live document to release.

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.