Well, in my project I need to use an excel file to read data from it (yes, a propper database would be better, but I cannot use one).
With Microsoft.Office.Interop.Excel I open files like this:
Application.Workbooks.Open(FileName);
But I don't want to send that file along with the project DLL
, because users are not meant to change this file.
So, I added it as a resource, and it became a byte array, with no path to disk.
byte[] ExcelFile = Properties.Resources.MyExcelFileResource;
Now, how do I load this byte array file with excel interop??? I want to open it properly as a real excel file, to work with it internally.