Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Add-OfficeWordCoverPage

Aliases: WordCoverPage
Module PSWriteOffice
Aliases
WordCoverPage
Inputs
OfficeIMO.Word.WordDocument
Outputs
OfficeIMO.Word.WordCoverPage

Adds a built-in cover page template to a Word document.

Syntax

Add-OfficeWordCoverPage [-Abstract <String>] [-CompanyAddress <String>] [-CompanyEmail <String>] [-Document <WordDocument>] [-PassThru] [-PublishDate <String>] [-Template] <WordCoverPageTemplate> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Uses OfficeIMO.Word cover page templates and optional cover-page metadata.

Examples

Authored help example

Add a cover page in the Word DSL.

New-OfficeWord -Path .\Report.docx { Add-OfficeWordCoverPage -Template Element -Abstract 'Executive summary' }

Creates a document with a template-driven cover page.

Parameters

-Abstract String optional
Abstract/summary stored in the cover page properties custom XML part.
-CompanyAddress String optional
Company address stored in the cover page properties custom XML part.
-CompanyEmail String optional
Company email stored in the cover page properties custom XML part.
-Document WordDocument optionalpipeline: True (ByValue)
Document to update. Defaults to the current Word DSL or tracked document.
-PassThru SwitchParameter optional
Emit the created cover page.
-PublishDate String optional
Publish date stored in the cover page properties custom XML part.
-Template WordCoverPageTemplate requiredposition: 0
Cover page template to insert.
Possible values: Austin, Banded, Facet, Grid, IonDark, IonLight, Element, Wisp, ViewMaster, SliceLight, SliceDark, SideLine, Semaphore, Retrospect

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.