Cmdlet
Export-OfficeProjectReport
Exports a captured Project report through the shared PDF, HTML, Word, Excel or PowerPoint adapters.
Syntax
Export-OfficeProjectReport
[-NoClobber]
[-PassThru]
[-Path] <String>
-View <ProjectView>
[-WhatIf]
[-Confirm]
[<CommonParameters>]#Parameter set:
ViewDescription
Requires PowerShell 7.6. The destination extension selects the report adapter. Rendering and editable document composition remain in OfficeIMO.Workflows.
Examples
Create an editable report and a vector PDF from the same schedule view.
$view = $project | Get-OfficeProjectView -Kind Gantt
$view | Export-OfficeProjectReport -Path ./delivery.pdf
$view | Export-OfficeProjectReport -Path ./delivery.docxParameters
- -NoClobber SwitchParameter
- Refuse replacement of an existing destination.
- -PassThru SwitchParameter
- Return the saved report file.
- -Path String
- PDF, HTML, DOCX, XLSX or PPTX destination filename.
- -View ProjectView
- Captured report from Get-OfficeProjectView.
- -WhatIf SwitchParameter
- Shows what would happen if the command runs.
- -Confirm SwitchParameter
- Prompts for confirmation before running the command.
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.