Hello,
I am new in SPIRE.XLS and I am trying FREE SPIRE.XLS. I DOWNLOADED FROM NUGET. I AM USING VS2015. It's a web project in asp.net and c#.
MY CODE IS VERY SIMPLE:
protected void Button1_Click(object sender, EventArgs e)
{
Workbook book = new Workbook();
Worksheet sheet = book.Worksheets[0];
sheet.InsertDataTable(dt, true, 1, 1);
book.SaveToStream(file_stream);
file_stream.Close();
System.Diagnostics.Process.Start("To_stream.xls");
}
I AM getting following error when I try to save :
book.SaveToStream(file_stream);
ERROR FILE IS ATTACHED.
Can anybody help me please.