NanoXLSX Library Documentation
![]() | LowLevelSaveAsStream Method |
Method to save the workbook as stream
Namespace: NanoXLSX.LowLevel
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 1.2.3.0 (1.2.3)

C#
public void SaveAsStream( Stream stream )
Parameters
- stream
- Type: System.IOStream
Writable stream as target

Exception | Condition |
---|---|
IOException | Throws IOException in case of an error |
RangeException | Throws an OutOfRangeException if the start or end address of a handled cell range was out of range |
FormatException | Throws a FormatException if a handled date cannot be translated to (Excel internal) OADate |
StyleException | Throws an StyleException if one of the styles of the workbook cannot be referenced or is null |

The StyleException should never happen in this state if the internally managed style collection was not tampered.
