Does someone knows, is it possible to open Microsoft Excel from unsaved file? From memory stream for example?
var workbook = new XLWorkbook();
var worksheet = workbook.Worksheets.Add("Sample Sheet");
worksheet.Cell("A1").Value = "Hello World!";
using (var ms = new MemoryStream())
{
//IS IT POSSIBLE TO OPEN EXCEL BUT FROM UNSAVED MEMORYSTREAM?
//Process.Start(EXCEL MS HERE);
}
OR, save file to some temporary folder and then open it by Excel, BUT required from user to 'Save' and 'SaveAs' actions.
Main goal: Open Microsoft Excel application from C# code with prepared sheets and say that user must save it like this document is a new one.