MemoryStream
The problem is I don't know/can't find a way to make excel interop write the file to a memorystream.
User Profile
Collapse
-
How do I generate an excel file for download without writing to disk?
I succesfuly generated an excel file and populated it with a table from an MySQL query (if anyone is interested in the code, just ask) but I'm having problems putting it for download. I can save the file to disk and the call it with response.WriteF ile(), but I can't seem to find a way to have the excel file saved to memory (RAM, not the HDD) and call it for download from there.
I'm using VS 2005, C#, Excel Interop 11.0, and I have... -
Aparentlly I would be closer to what I want by using a MemoryStrem instead of a FileStream. Still not sure how to use it though.Leave a comment:
-
Can I save a file directly to a filestream and avoid disk usage?
Hi, I'm using VS 2005 and C# to make a website.
I got a page that exports my report to an xls file (first reading a template, then poulating all the fields, then saving it to another file and finally sending it through a "Response.Write File").
What I'm trying to do is save the whole xls file to the response.writef ile and avoid disk usage.
here's the working code I got (the relevant part):...
No activity results to display
Show More
Leave a comment: