# Export-OfficeProjectReport

Exports a captured Project report through the shared PDF, HTML, Word, Excel or PowerPoint adapters.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Project.ProjectView`

**Outputs**

`System.IO.FileInfo`

**Source**

[ExportOfficeProjectReportCommand.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Project/ExportOfficeProjectReportCommand.cs#L22) 

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>]
```

[#](#method-export-officeprojectreport-switchparameter-switchparameter-string-projectview-switchparameter-switchparameter)

Parameter set: `View`

## Description

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

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Project, Access, and EPUB Files](/docs/pswriteoffice/project-access-epub/) Guide
  
  Create and read Microsoft Project schedules, Access databases and EPUB books from PowerShell, without Project or Access installed.

## Examples

### Create an editable report and a vector PDF from the same schedule view.

```powershell
$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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:482136B825461A89CDB1BE63A1597ECAB556B07ED2C61AE4DD15FE93AF8B08CB -->
