Exception from HRESULT: 0x800A03EC Error while saving Excel file

前端 未结 4 1983
清歌不尽
清歌不尽 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:59

    check for cell indices for sheet , starts from [1,1] sheet.cells[0,0] will throw com error.

提交回复
热议问题