 | WorkbookSaveAsStreamAsync Method |
Save the workbook to a writable stream asynchronous.
Namespace: NanoXLSXAssembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.3+98f265239ae8df4639650ecd7029244cc5e52dfc
Syntaxpublic Task SaveAsStreamAsync(
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)
Return Value
TaskTask object (void)
ExceptionsException | Condition |
---|
IOException | Throws IOException in case of an error. The asynchronous operation may hide the exception. |
RangeException | May throw a RangeException if the start or end address of a handled cell range was out of range. The asynchronous operation may hide the exception. |
FormatException | May throw a FormatException if a handled date cannot be translated to (Excel internal) OADate. The asynchronous operation may hide the exception. |
See Also