OfficeIMO

API Reference

Command

Save-OfficeWord

Namespace PSWriteOffice
Inputs
OfficeIMO.Word.WordDocument
Outputs
OfficeIMO.Word.WordDocument

Saves a Word document without disposing it.

Remarks

Saves a Word document without disposing it.

Examples

Save the open document.


PS>$doc | Save-OfficeWord
        

Persists pending changes and keeps the document open.

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.

Syntax

Save-OfficeWord -Document <WordDocument> [-PassThru] [-Path <String>] [-Show] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Document WordDocument requiredposition: 0pipeline: True (ByValue)
Document to save.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the document object for further processing.
Path String optionalposition: namedpipeline: False
Optional save-as path.
Show SwitchParameter optionalposition: namedpipeline: False
Open the document after saving.

Outputs

OfficeIMO.Word.WordDocument