News & Releases

Minimize
Nasosoft Components for .NET v5.4.0 Released - Friday, September 06, 2013

Nasosoft Component for .NET v5.4.0 has released with many improvements.

What's new

Nasosoft Excel for .NET   
  • Bug Fixes

 

 

Nasosoft Excel for .NET

   Minimize
Save an Excel File
 
Save an Excel File to Specified Path
[C#]
 
 
//Create a Workbook object
XlsWorkbook workbook = new XlsWorkbook();
 
//Save the workbook to specified path
workbook.Save("book1.xls");
 
[VB.NET]
 
 
'Create a Workbook object
Dim workbook As XlsWorkbook = New XlsWorkbook()
 
'Save the workbook to specified path
workbook.Save("book1.xls")
 
 
Save an Excel File to Specified Stream
[C#]
 
 
FileStream fstream = new FileStream("book1.xls", FileMode.CreateNew);
 
//Create a Workbook object
XlsWorkbook workbook = new XlsWorkbook();
 
//Save the workbook to the specified stream object
workbook.Save(fstream);
 
[VB.NET]
 
 
Dim fstream As FileStream = New FileStream("C:\book1.xls", FileMode.CreateNew)
 
'Create a Workbook object
Dim workbook As XlsWorkbook = New XlsWorkbook()
 
'Save the workbook to the specified stream object
workbook.Save(fstream)