On my asp page, I need to open the csv file in IE using java script. The code I use is as follows:
csvWindow = window.open ("/ com / csv /" + csvFileName, "datacsv", "toolbar = yes, location = no, directories = yes, status = no, menubar = yes, scrollbars = yes, resizable = yes, width = 790, height = 450, screenX = 50, screenY = 25, left = 50, top = 25 ");
The code is running on the IIS server.
When I run this code and open the csv file, it gives below message
Microsoft Office Excel cannot access the file
"http://192.168.3.228:107/com/csv/CSV_file_1345728.csv". There are several possible reasons:
The file name or path does not exist
the file is being used by another program
the workbook you are trying yo save has the same name as a currently open workbook.
But the file is being created. This path is correct, and I think that this file is also not used by another program
Please help me what should I do
source share