M
mazdotnet
Hi all,
I'm trying to integrate a third party library that would parse an
excel file and allows us to make changes to. Once I update the
appropriate cells, I want to allow my users to download the modified
file.
It works by
IWorkbook book =
NativeExcel.Factory.OpenWorkbook(this.MapPath(FileName));
... I do all my modifications here
book.SaveAs(where one of the options is System.IO.Stream outputstream)
Now if I want to allow users to download this file, how would use the
System.IO.Stream in the following context?
Response.AddHeader("content-disposition", "attachment; filename=
\"myfile.xls\"");
// here
Response.Flush();
Response.End();
Thank you
Maz.
I'm trying to integrate a third party library that would parse an
excel file and allows us to make changes to. Once I update the
appropriate cells, I want to allow my users to download the modified
file.
It works by
IWorkbook book =
NativeExcel.Factory.OpenWorkbook(this.MapPath(FileName));
... I do all my modifications here
book.SaveAs(where one of the options is System.IO.Stream outputstream)
Now if I want to allow users to download this file, how would use the
System.IO.Stream in the following context?
Response.AddHeader("content-disposition", "attachment; filename=
\"myfile.xls\"");
// here
Response.Flush();
Response.End();
Thank you
Maz.