Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

New-OfficeProjectViewOptions

Module
PSWriteOffice
Inputs
None
Outputs
OfficeIMO.Project.ProjectViewOptions

Creates selection, timescale and page settings for Get-OfficeProjectView -Options.

Syntax

New-OfficeProjectViewOptions
[-Baseline <Int32>]
[-Column <ProjectViewColumn[]>]
[-CriticalOnly]
[-Finish <DateTime>]
[-Grouping <ParentTask>]
[-Kind <ProjectViewKind>]
[-Margin <OfficeLength>]
[-MaximumBuckets <Int32>]
[-MaximumCells <Int32>]
[-MaximumIntervalVisits <Int32>]
[-MaximumPages <Int32>]
[-MaximumRows <Int32>]
[-NameContains <String>]
[-NetworkLayout <Dependency|Compact>]
[-NoFitToContent]
[-NoLegend]
[-NoProgress]
[-NoSummaries]
[-PageHeight <OfficeLength>]
[-PageWidth <OfficeLength>]
[-Resource <Int32[]>]
[-Start <DateTime>]
[-StatusDate <DateTime>]
[-Task <Int32[]>]
[-Timescale <Day|Week|Month>]
[<CommonParameters>]
#
Parameter set: Options

Examples

Use the native OfficeProjectViewOptions command.

$options = New-OfficeProjectViewOptions -Kind ResourceUsage -Timescale Month
Get-OfficeProjectView -Document $project -Options $options

Parameters

-Baseline Int32 optional
Baseline number 0-10 to compare against.
-Column ProjectViewColumn[] optional
Uid, Name, Start, Finish, WorkHours, Cost, PercentComplete, Critical; default depends on the layout.
Possible values: Uid, Name, Start, Finish, WorkHours, Cost, PercentComplete, Critical
-CriticalOnly SwitchParameter optional
CriticalOnly for this operation.
-Finish DateTime optional
Last visible date (exclusive); default from the schedule.
-Grouping ProjectViewGrouping optional
None (outline order, default) or ParentTask.
Possible values: ParentTask
-Kind ProjectViewKind optional
Native report kind; defaults to Gantt.
Possible values: Gantt, TaskUsage, ResourceUsage, ResourceHistogram, Network, Timeline, Table
-Margin OfficeLength optional
Default 28pt.
-MaximumBuckets Int32 optional
Time buckets before pagination; default 1000.
-MaximumCells Int32 optional
Default 1000000.
-MaximumIntervalVisits Int32 optional
Default 2000000.
-MaximumPages Int32 optional
Default 1000.
-MaximumRows Int32 optional
Default 10000.
-NameContains String optional
Case-insensitive task name filter.
-NetworkLayout ProjectNetworkLayout optional
Network view: Dependency (default) or Compact.
Possible values: Dependency, Compact
-NoFitToContent SwitchParameter optional
Keep the full -PageHeight instead of trimming unused space (trimmed by default).
-NoLegend SwitchParameter optional
NoLegend for this operation.
-NoProgress SwitchParameter optional
Do not fill task bars with completion (shown by default).
-NoSummaries SwitchParameter optional
Omit summary task rows (shown by default).
-PageHeight OfficeLength optional
Default 595pt; the maximum height when pages fit their content.
-PageWidth OfficeLength optional
Default A4 landscape (842pt).
-Resource Int32[] optional
Stable native resource UIDs. Pass the Uid values of selected model objects; these are identities, not collection positions.
-Start DateTime optional
First visible date (inclusive); default from the schedule.
-StatusDate DateTime optional
Status-date marker in Gantt and Timeline views.
-Task Int32[] optional
Stable native task UIDs. Pass the Uid values of selected model objects; these are identities, not collection positions.
-Timescale ProjectViewTimescale optional
Day, Week (default) or Month buckets; weeks begin on Monday.
Possible values: Day, Week, Month

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.