Issue downloading .xlsm document with activex controls using NPOI
问题 I am trying to implement an excel file download functionality in my asp.net MVC application and using NPOI. The file has three sheets and Sheet2 has two activex buttons. I am reading the source file, adding values to sheet2, save it in temporary location and download the file later using the following code. using (var fs = new FileStream(xlsFilePath, FileMode.Open, FileAccess.Read)) { var templateWorkbook = new XSSFWorkbook(fs); //Sheet update operation done here fs.Close(); var memoryStream