![]() |
NanoXLSX.Writer 3.0.0-rc.3
|
Writer extension methods for the Workbook class. More...
Static Public Member Functions | |
| static void | Save (this Workbook workbook) |
| Saves the workbook. | |
| static async Task | SaveAsync (this Workbook workbook) |
| Saves the workbook asynchronous. | |
| static void | SaveAs (this Workbook workbook, string filename) |
| Saves the workbook with the defined name. | |
| static async Task | SaveAsAsync (this Workbook workbook, string fileName) |
| Saves the workbook with the defined name asynchronous. | |
| static void | SaveAsStream (this Workbook workbook, Stream stream, bool leaveOpen=false) |
| Save the workbook to a writable stream. | |
| static async Task | SaveAsStreamAsync (this Workbook workbook, Stream stream, bool leaveOpen=false) |
| Save the workbook to a writable stream asynchronous. | |
Writer extension methods for the Workbook class.
Definition at line 12 of file WorkbookExtension.cs.
|
static |
Saves the workbook.
| NanoXLSX.Exceptions.IOException | Throws IOException in case of an error |
This is an extension method, applied to the Workbook class. An example usage is:
Definition at line 26 of file WorkbookExtension.cs.
|
static |
Saves the workbook with the defined name.
| filename | filename of the saved workbook |
| workbook | Workbook reference |
| NanoXLSX.Exceptions.IOException | Throws IOException in case of an error |
This is an extension method, applied to the Workbook class. An example usage is:
Definition at line 68 of file WorkbookExtension.cs.
|
static |
Saves the workbook with the defined name asynchronous.
| fileName | filename of the saved workbook |
| workbook | Workbook reference |
| NanoXLSX.Exceptions.IOException | May throw an IOException in case of an error. The asynchronous operation may hide the exception. |
This is an extension method, applied to the Workbook class. An example usage is:
Definition at line 95 of file WorkbookExtension.cs.
|
static |
Save the workbook to a writable stream.
| stream | Writable stream |
| leaveOpen | Optional parameter to keep the stream open after writing (used for MemoryStreams; default is false) |
| workbook | Workbook reference |
| NanoXLSX.Exceptions.IOException | Throws IOException in case of an error |
This is an extension method, applied to the Workbook class. An example usage is:
The stream can also be kept open:
Definition at line 133 of file WorkbookExtension.cs.
|
static |
Save the workbook to a writable stream asynchronous.
| stream | >Writable stream |
| leaveOpen | Optional parameter to keep the stream open after writing (used for MemoryStreams; default is false) |
| workbook | Workbook reference |
| NanoXLSX.Exceptions.IOException | Throws IOException in case of an error. The asynchronous operation may hide the exception. |
This is an extension method, applied to the Workbook class. An example usage is:
The stream can also be kept open:
Definition at line 179 of file WorkbookExtension.cs.
|
static |
Saves the workbook asynchronous.
| NanoXLSX.Exceptions.IOException | May throw an IOException in case of an error. The asynchronous operation may hide the exception. |
This is an extension method, applied to the Workbook class. An example usage is:
Definition at line 48 of file WorkbookExtension.cs.