I have a scenario where I made a request, got response data, created a .xlsx file using XLSX library. This new excel document is good, means it will open and show correct data when opened from system explorer. But after download I have to display a pop-up like- "Your file is downloaded, Do you want to open it? " and Yes/No buttons. If user clicks on yes, that excel should open in MS Excel.
I tried windows.open, but it will not work as excel file will not open in chrome tab.
No code, as I am not getting even a single solution to this problem.
How to open that excel using button click? More important question is, how do I make angular interact with a system explorer file?
Try using Absolute Path of the file you are trying to open
eg:
Excel.Workbooks.Open("E:\\\\test.xlsx");
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.