Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Open-OfficeProject

Module
PSWriteOffice
Inputs
System.String
Outputs
OfficeIMO.Project.ProjectDocument

Loads a project without calculating or executing its content.

Syntax

Open-OfficeProject
[-AllowLoss]
[[-Content] <ScriptBlock>]
[-MaxInputBytes <Int64>]
[-PassThru]
[-Path] <String>
[-ReadOnly]
[<CommonParameters>]
#
Parameter set: Path
Open-OfficeProject
[-AllowLoss]
[[-Content] <ScriptBlock>]
-LiteralPath <String>
[-MaxInputBytes <Int64>]
[-PassThru]
[-ReadOnly]
[<CommonParameters>]
#
Parameter set: LiteralPath

Examples

Loads a project without calculating or executing its content.

Open-OfficeProject -Path ./delivery.mpp -ReadOnly

Parameters

-AllowLoss SwitchParameter optional
Explicitly accept native-save loss for an authoring block.
-Content ScriptBlock optionalposition: 1
An optional authoring block; omission returns the live document.
-MaxInputBytes Int64 optional
Maximum source size in bytes.
-PassThru SwitchParameter optional
Emit the FileInfo after a completed authoring block.
-Path String requiredposition: 0pipeline: True (ByValue)sets: Path
Literal filesystem path.
-ReadOnly SwitchParameter optional
Open without allowing edits.
-LiteralPath String requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath
Exact source path without wildcard expansion.

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.