Click or drag to resize
NanoXLSX

WorkbookSaveAsStream Method

Save the workbook to a writable stream

Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.4+e304ab0274fa680d1e83f83c8f76c3bd5a54caf2
Syntax
C#
public void SaveAsStream(
	Stream stream,
	bool leaveOpen = false
)

Parameters

stream  Stream
Writable stream
leaveOpen  Boolean  (Optional)
Optional parameter to keep the stream open after writing (used for MemoryStreams; default is false)
Exceptions
ExceptionCondition
IOExceptionThrows IOException in case of an error
RangeExceptionThrows a RangeException if the start or end address of a handled cell range was out of range
FormatExceptionThrows a FormatException if a handled date cannot be translated to (Excel internal) OADate
See Also