Exception from HRESULT: 0x800A03EC Error while saving Excel file

前端 未结 4 2163
清歌不尽
清歌不尽 2020-12-21 11:15

I am saving data on button\'s click event and below is code:

using Excel = Microsoft.Office.Interop.Excel;

Excel.Application xlApp;
Excel.Workbook xlWorkBoo         


        
4条回答
  •  余生分开走
    2020-12-21 11:54

    As I understand at Saving an Excel File Exception from HRESULT: 0x800A03EC Exception raised when arguments of method SaveAs are wrong. Please review your arguments at:

    xlWorkBook.SaveAs(st1, XlFileFormat.xlExcel9795, misValue, misValue, misValue, misValue, Excel.XlSaveAsAccessMode.xlShared, misValue, misValue, misValue, misValue, misValue);
    

提交回复
热议问题