Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open excel with EPPlus without saving to file

Rright now I'm opening excel using System.Diagnostics.Process.Start(fileInfo);

to open my package after saving it to a file.

Is it possible to open excel without having to save the file to a location? I would like the user to decide whether or not to save the file.

like image 579
rgshenoy Avatar asked Oct 21 '25 00:10

rgshenoy


1 Answers

If you're generating the file yourself using EPPlus (or any other libraries that generate the file directly), you'll need to save it before you can open it in Excel. I'd recommend just saving it in the temp directory, then showing it to the user and letting them choose what to do with it.

If you generate the file using Office Automation, you can display it to the user before saving it.

like image 142
Tim Copenhaver Avatar answered Oct 23 '25 12:10

Tim Copenhaver