# Get-OfficeProjectView

Captures a portable report from a current calculated schedule.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Project.ProjectDocument`

**Outputs**

`OfficeIMO.Project.ProjectView`

**Source**

[GetOfficeProjectViewCommand.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Project/GetOfficeProjectViewCommand.cs#L15) 

Captures a portable report from a current calculated schedule.

## Syntax

```
Get-OfficeProjectView
[-Document <ProjectDocument>]
[-Kind <ProjectViewKind>]
[-Schedule <ProjectScheduleResult>]
[<CommonParameters>]
```

[#](#method-get-officeprojectview-projectdocument-projectviewkind-projectscheduleresult)

Parameter set: `Document`

```
Get-OfficeProjectView
[-Document <ProjectDocument>]
-Options <ProjectViewOptions>
[-Schedule <ProjectScheduleResult>]
[<CommonParameters>]
```

[#](#method-get-officeprojectview-projectdocument-projectviewoptions-projectscheduleresult)

Parameter set: `Options`

## 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

### Captures a portable report from a current calculated schedule.

```powershell
$view = $project | Get-OfficeProjectView -Schedule $schedule -Kind Gantt
```

## Parameters

**-Document ProjectDocument optionalpipeline: True (ByValue)**

Project document.

**-Kind ProjectViewKind optionalsets: Document**

Report presentation.

Possible values: `Gantt`, `TaskUsage`, `ResourceUsage`, `ResourceHistogram`, `Network`, `Timeline`, `Table`

**-Schedule ProjectScheduleResult optional**

Current schedule result for this project revision. Omission calculates a report snapshot without changing the document.

**-Options ProjectViewOptions requiredsets: Options**

Optional explicit report settings.

## 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:39325AE17C938EBDD824168846A871C140C938C316600DCC1FD3169C7D864550 -->
