WordprocessingDocument.Open Method (String, Boolean)
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
Creates a new instance of the WordprocessingDocument class from the specified file.
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
- Type: System.String
Specifies the path and file name of the target Package for the OpenXmlPackage.
- Type: System.Boolean
Specifies the ReadWrite mode. False for Read only mode.
Return ValueType: DocumentFormat.OpenXml.Packaging.WordprocessingDocument
Returns a new instance of WordprocessingDocument.