Cmdlet
Add-OfficeExcelReportParagraph
Adds a paragraph of text to the report.
Syntax
Add-OfficeExcelReportParagraph
[-PassThru]
[-Text] <String>
[<CommonParameters>]#Parameter set:
DefaultExamples
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
- Emits the native result after the operation.
- -Text String
- 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.