OfficeIMO

API Reference

Command

Get-OfficeWordTable

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

Gets tables from a Word document or section.

Remarks

Gets tables from a Word document or section.

Examples

List tables in a document.


PS>Get-OfficeWordTable -Path .\Report.docx
        

Returns the tables found in the document.

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

Get-OfficeWordTable [-IncludeNested] -InputPath <String> [<CommonParameters>]
#
Parameter set: Path

Parameters

IncludeNested SwitchParameter optionalposition: namedpipeline: False
Include nested tables.
InputPath String requiredposition: 0pipeline: Falsealiases: FilePath, Path
Path to the document.

Outputs

OfficeIMO.Word.WordTable

Get-OfficeWordTable -Document <WordDocument> [-IncludeNested] [<CommonParameters>]
#
Parameter set: Document

Parameters

Document WordDocument requiredposition: namedpipeline: True (ByValue)
Document to inspect.
IncludeNested SwitchParameter optionalposition: namedpipeline: False
Include nested tables.

Outputs

OfficeIMO.Word.WordTable

Get-OfficeWordTable [-IncludeNested] -Section <WordSection> [<CommonParameters>]
#
Parameter set: Section

Parameters

IncludeNested SwitchParameter optionalposition: namedpipeline: False
Include nested tables.
Section WordSection requiredposition: namedpipeline: True (ByValue)
Section to enumerate.

Outputs

OfficeIMO.Word.WordTable