We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Save the Excel File to disk then Attaching to email

Which of the demos does a good job of showing how to save the Excel output to the server disk. I need to generate files and then attach them to email messages. - Thanks!

Dear jpsteffen,

Thanks for your consideration.

Could you see the Aspose.Excel.Save method?

You may please download the latest version of the product from the following link:
Aspose.Cells for .NET (Latest Version)

You can save the workbook in different formats using the following sample code:

Workbook workbook = new Workbook();
workbook.Worksheets[0].Cells[0, 0].Value = "Test Value";

// Save in Excel 97/2003 format
workbook.Save(dataDir + ".output.xls");
// OR
workbook.Save(dataDir + ".output..xls", new XlsSaveOptions(SaveFormat.Excel97To2003));

// Save in Excel2007 xlsx format
workbook.Save(dataDir + ".output.xlsx", SaveFormat.Xlsx);

// Save in Excel2007 xlsb format
workbook.Save(dataDir + ".output.xlsb", SaveFormat.Xlsb);

// Save in ODS format
workbook.Save(dataDir + ".output.ods", SaveFormat.ODS);

// Save in Pdf format
workbook.Save(dataDir + ".output.pdf", SaveFormat.Pdf);

// Save in Html format
workbook.Save(dataDir + ".output.html", SaveFormat.Html);

// Save in SpreadsheetML format
workbook.Save(dataDir + ".output.xml", SaveFormat.SpreadsheetML);