/// <summary> /// Creates a new instance of OpenXmlPackage on the specified instance /// of Package. /// </summary> /// <param name="package">The specified instance of Package.</param> /// <returns>A new instance of OpenXmlPackage.</returns> protected override OpenXmlPackage CreateClone(Package package) { return(SpreadsheetDocument.Create(package, DocumentType, OpenSettings.AutoSave)); }
/// <summary> /// Creates a new OpenXmlPackage on the given stream. /// </summary> /// <param name="stream">The stream on which the concrete OpenXml package will be created.</param> /// <returns>A new instance of OpenXmlPackage.</returns> protected override OpenXmlPackage CreateClone(Stream stream) { return(SpreadsheetDocument.Create(stream, DocumentType, OpenSettings.AutoSave)); }