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
[-NoClobber]
[-PassThru]
[-Path] <String>
-View <ProjectView>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
#
Parameter set: View

Description

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

Parameters

-NoClobber SwitchParameter optional
Refuse replacement of 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.
-WhatIf SwitchParameter optional
Shows what would happen if the command runs.
-Confirm SwitchParameter optional
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.