Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Add-OfficeExcelReportParagraph

Aliases: ExcelReportParagraph
Module
PSWriteOffice
Aliases
ExcelReportParagraph
Inputs
None

Adds a paragraph of text to the report.

Syntax

Add-OfficeExcelReportParagraph
[-PassThru]
[-Text] <String>
[<CommonParameters>]
#
Parameter set: Default

Examples

Add explanatory text

New-OfficeExcel -Path .\Reports\Operations.xlsx {
    ExcelReportSheet 'Summary' {
        ExcelReportParagraph 'Figures cover all production services from 1 to 31 October.'
    }
}

Adds a paragraph under the title.

Explain a table before it appears

New-OfficeExcel -Path .\Reports\Service-Review-October.xlsx {
    ExcelReportSheet 'Review' {
        ExcelReportHeading 'Availability by site'
        ExcelReportParagraph 'Availability is measured every minute from two external probes. Planned maintenance announced five days ahead is excluded.'
        ExcelReportTable (Import-OfficeCsv -Path .\Data\Site-Availability.csv)
    }
}

Describes how availability is measured before the site table, so readers do not need a separate methods document.

Parameters

-PassThru SwitchParameter optional
Emits the native result after the operation.
-Text String requiredposition: 0
Comment text.

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.