/// <summary> /// Opens the cloned OpenXml package on the given file. /// </summary> /// <param name="path">The path and file name of the target OpenXml package.</param> /// <param name="isEditable">In ReadWrite mode. False for Read only mode.</param> /// <param name="openSettings">The advanced settings for opening a document.</param> /// <returns>A new instance of OpenXmlPackage.</returns> protected override OpenXmlPackage OpenClone(string path, bool isEditable, OpenSettings openSettings) { return(SpreadsheetDocument.Open(path, isEditable, openSettings)); }
/// <summary> /// Creates a new instance of the SpreadsheetDocument class from the IO stream. /// </summary> /// <param name="stream">The IO stream on which to open the SpreadsheetDocument.</param> /// <param name="isEditable">In ReadWrite mode. False for Read only mode.</param> /// <returns>A new instance of SpreadsheetDocument.</returns> /// <exception cref="ArgumentNullException">Thrown when "stream" is null reference.</exception> /// <exception cref="IOException">Thrown when "stream" is not opened with Read (ReadWrite) access.</exception> /// <exception cref="OpenXmlPackageException">Thrown when the package is not valid Open XML SpreadsheetDocument.</exception> public static SpreadsheetDocument Open(System.IO.Stream stream, bool isEditable) { return(SpreadsheetDocument.Open(stream, isEditable, new OpenSettings())); }
/// <summary> /// Creates a new instance of the SpreadsheetDocument class from the specified package. /// </summary> /// <param name="package">The specified OpenXml package.</param> /// <returns>A new instance of SpreadsheetDocument.</returns> /// <exception cref="ArgumentNullException">Thrown when "package" is null reference.</exception> /// <exception cref="IOException">Thrown when "package" is not opened with Read (ReadWrite) access.</exception> /// <exception cref="OpenXmlPackageException">Thrown when the package is not valid Open XML SpreadsheetDocument.</exception> public static SpreadsheetDocument Open(System.IO.Packaging.Package package) { return(SpreadsheetDocument.Open(package, new OpenSettings())); }
/// <summary> /// Creates a new instance of the SpreadsheetDocument class from the specified file. /// </summary> /// <param name="path">The path and file name of the target SpreadsheetDocument.</param> /// <param name="isEditable">In ReadWrite mode. False for Read only mode.</param> /// <returns>A new instance of SpreadsheetDocument.</returns> /// <exception cref="ArgumentNullException">Thrown when "path" is null reference.</exception> /// <exception cref="OpenXmlPackageException">Thrown when the package is not valid Open XML SpreadsheetDocument.</exception> public static SpreadsheetDocument Open(string path, bool isEditable) { return(SpreadsheetDocument.Open(path, isEditable, new OpenSettings())); }