Cmdlet
Export-OfficeProjectReport
Exports a captured Project report through the shared PDF, HTML, Word, Excel or PowerPoint adapters.
Syntax
Export-OfficeProjectReport [-Force] [-PassThru] [-Path] <String> -View <ProjectView> [<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Requires PowerShell 7.4. 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
- -Force SwitchParameter
- Replace 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.
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.