vikaskalra
Technical User
Hi !
I am stuck at a problem and need your help.
I am using:
Response.ContentType = "application/vnd.ms-excel"
statement to direct the output of the ASP page to an excel sheet. The moment the request is sent for processing the page a Message comes up saying :-
Microsft Excel cannot access the file ' There are several possible reasons :
1. The file name or path name does not exist.
2. The file you'rs trying to open is being used by another program. Close the document in the other program, and try again.
3. The name of the workbook you're trying to save is the same as the name of another document that is read-only. Try saving the workbook with a different name.
When I click on the OK button, I am allowed to view the page as well as to save it like a normal Excel file.
I would like to know how can I avoid displaying this Messagebox, or is there something wrong in my program, or I need to include some other directive as well.
Please reply ASAP,
Regards,
Vikas
I am stuck at a problem and need your help.
I am using:
Response.ContentType = "application/vnd.ms-excel"
statement to direct the output of the ASP page to an excel sheet. The moment the request is sent for processing the page a Message comes up saying :-
Microsft Excel cannot access the file ' There are several possible reasons :
1. The file name or path name does not exist.
2. The file you'rs trying to open is being used by another program. Close the document in the other program, and try again.
3. The name of the workbook you're trying to save is the same as the name of another document that is read-only. Try saving the workbook with a different name.
When I click on the OK button, I am allowed to view the page as well as to save it like a normal Excel file.
I would like to know how can I avoid displaying this Messagebox, or is there something wrong in my program, or I need to include some other directive as well.
Please reply ASAP,
Regards,
Vikas