/// <summary> /// Saves the workbook with the defined name /// </summary> /// <param name="filename">filename of the saved workbook</param> /// <exception cref="NanoXLSX.Exception.IOException">Throws IOException in case of an error</exception> /// <exception cref="RangeException">Throws an RangeException if the start or end address of a handled cell range was out of range</exception> /// <exception cref="NanoXLSX.Exception.FormatException">Throws a FormatException if a handled date cannot be translated to (Excel internal) OADate</exception> /// <exception cref="StyleException">Throws an StyleException if one of the styles of the workbook cannot be referenced or is null</exception> public void SaveAs(string filename) { string backup = filename; this.filename = filename; LowLevel.LowLevel l = new LowLevel.LowLevel(this); l.Save(); this.filename = backup; }
/// <summary> /// Saves the workbook /// </summary> /// <exception cref="NanoXLSX.Exception.IOException">Throws IOException in case of an error</exception> /// <exception cref="RangeException">Throws an RangeException if the start or end address of a handled cell range was out of range</exception> /// <exception cref="NanoXLSX.Exception.FormatException">Throws a FormatException if a handled date cannot be translated to (Excel internal) OADate</exception> /// <exception cref="StyleException">Throws an StyleException if one of the styles of the workbook cannot be referenced or is null</exception> public void Save() { LowLevel.LowLevel l = new LowLevel.LowLevel(this); l.Save(); }