I have the sample code below which will create a excel file. I dont want to save this in server.
if (app == null)
return;
app.Visible = true;
object loc;
workbook = app.Workbooks.Add(1);
workbook.SaveAs("D:\\Sample.xls", Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Microsoft.Office.Interop.Excel.XlSaveAsAccessMode.xlExclusive, Type.Missing, Type.Missing, Type.Missing, Type.Missing,Type.Missing);
without saving how to download this on the fly?