i'm trying to export through the response xlsm file which contains a macro.
in the 'save/open' dialog box if I choose to open the file then when I click on the macro
I get the 'file in use' error. this is only when opening the file using explorer.
for xls file it's ok.
here is a snippet:
Response.Buffer = true;
string fileName = @"C:\test.xlsm";
Response.AddHeader("content-disposition", "attachment;filename=" + fileName);
Response.ContentType = "application/vnd.ms-excel";
any idea why i'm getting this ?
View Complete Post