Hi Team,
I am using aspose.cells to exporte byte array to excel file. Below is the code snippet. But this does not download the file. If i add a folder like “C:\Downloads” or any physical path to the file name it gets downloaded there. But I want this to be downloaded to my downloads folder automatically. i cannot hardcode the downloads folder becuse it would fail on client machine when such a folder is not found.
string excelFileName = UserID.Value + Guid.NewGuid().GetHashCode().ToString() + "tempTableView.xlsx";
Stream fileStream = new MemoryStream(reportBytes);
var Workbook = new Workbook(fileStream);
Workbook.Save(excelFileName, SaveFormat.Xlsx);