OpenXmlPackage.SaveAs(String) Method

Definition

Caution

This API will be removed in future release. Instead, use Clone() as it does the same thing

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.

C#
public DocumentFormat.OpenXml.Packaging.OpenXmlPackage SaveAs (string path);
C#
[System.Obsolete("This API will be removed in future release. Instead, use Clone() as it does the same thing")]
public DocumentFormat.OpenXml.Packaging.OpenXmlPackage SaveAs (string path);

Parameters

path
String

The path and file name of the target document.

Returns

The cloned OpenXml package

Attributes

Remarks

Calling SaveAs(string) is exactly equivalent to calling Clone(string). This method is essentially provided for convenience.

Applies to

Product Versions (Obsolete)
DocumentFormat.OpenXml 2.7.1, 2.7.2, 2.8.0, 2.8.1, 2.9.0, 2.9.1, 2.10.0, 2.10.1, 2.11.0, 2.11.1, 2.11.2, 2.11.3, 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0 (2.20.0)