Click or drag to resize

IWorkbook SaveAs Method

Overload List
Name Description
Public method SaveAs(Stream)
Saves changes to the specified stream.
Public method SaveAs(String)
Short variant of SaveAs method.
Public method SaveAs(Stream, ExcelSaveType)
Saves changes to the specified stream.
Public method Code example SaveAs(Stream, String)
Save active WorkSheet using separator.
Examples
The following code illustrates how to saves the active worksheet as stream with separator:
<para>//Create workbook</para><para>Workbook workbook = new Workbook();</para><para>workbook.LoadFromFile("Sample.xlsx");</para><para>//Save to stream</para><para>Stream stream = new MemoryStream();</para><para>workbook.SaveToFile(stream , ",");</para>
Public method SaveAs(String, ExcelSaveType)
Short variant of SaveAs method.
Public method Code example SaveAs(String, String)
Save active WorkSheet using separator.
Examples
The following code illustrates how to save the active worksheet in a different file with separator:
<para>//Create workbook</para><para>Workbook workbook = new Workbook();</para><para>workbook.LoadFromFile("Sample.xlsx");</para><para>//Save to file</para><para>workbook.SaveToFile("Result.csv" , ",");</para>
Public method SaveAs(String, HttpResponse)
Saves changes to the specified HttpResponse.
Public method SaveAs(String, ExcelSaveType, HttpResponse)
Saves changes to the specified HttpResponse.
Top
See Also