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.3+98f265239ae8df4639650ecd7029244cc5e52dfc
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