Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Export-OfficeProjectReport

Module PSWriteOffice
Inputs
OfficeIMO.Project.ProjectView
Outputs
System.IO.FileInfo

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 Sets

Description

Requires PowerShell 7.4. The destination extension selects the report adapter. Rendering and editable document composition remain in OfficeIMO.Workflows.

Examples

Authored help example

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.docx

Parameters

-Force SwitchParameter optional
Replace an existing destination.
-PassThru SwitchParameter optional
Return the saved report file.
-Path String requiredposition: 0
PDF, HTML, DOCX, XLSX or PPTX destination filename.
-View ProjectView requiredpipeline: True (ByValue)
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.