Click or drag to resize

XlsWorkbook SaveAs Method (Stream, String)

Saves the active sheet to the specified stream using the given separator.

Namespace: Spire.Xls.Core.Spreadsheet
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public void SaveAs(
	Stream stream,
	string separator
)

Parameters

stream
Type: System.IO Stream
The stream to save the sheet to.
separator
Type: System String
The separator to use when saving the sheet.

Implements

IWorkbook SaveAs(Stream, String)
Exceptions
Exception Condition
ArgumentNullException Thrown if the ActiveSheet is null or if the ActiveSheet is an "Evaluation Warning" sheet at the last index of the Worksheets collection.
See Also