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