OfficeIMO

API Reference

Command

Update-OfficeWordFields

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

Updates fields in a Word document.

Remarks

Updates fields in a Word document.

Examples

Update fields.


PS>Update-OfficeWordFields
        

Updates PAGE/NUMPAGES fields and marks TOC fields as dirty.

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

Update-OfficeWordFields [-Document <WordDocument>] [-PassThru] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Document WordDocument optionalposition: namedpipeline: True (ByValue)
Document to update when provided explicitly.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the updated document.

Outputs

System.Object