Excel email


Is it possible to create an excel file in memory and send it as an attachment to an email using Aspose.Excel?

If so, could you show an example or point me in the right direction?

Thanks very much,
Charles Watson


Hi Charles,

You can refer to Excel.Save(string,FileFormatType,out MemoryStream);
method to create an excel file in memory. And you can refer to System.Web.Mail namespace in MSDN to send an email.

I am not familiar with mail programming so I cannot post a sample right now.