OpenXmlPackage.SaveAs(String) OpenXmlPackage.SaveAs(String) OpenXmlPackage.SaveAs(String) Method

Definition

Saves the contents of all parts and relationships that are contained in the OpenXml package to the specified file. Opens the saved document using the same settings that were used to open this OpenXml package.

public DocumentFormat.OpenXml.Packaging.OpenXmlPackage SaveAs (string path);
member this.SaveAs : string -> DocumentFormat.OpenXml.Packaging.OpenXmlPackage
Public Function SaveAs (path As String) As OpenXmlPackage

Parameters

path
String String String

The path and file name of the target document.

Returns

The cloned OpenXml package

Remarks

Calling SaveAs(string) is exactly equivalent to calling Clone(string).

This method is essentially provided for convenience.

Applies to