Excel error HRESULT: 0x800A03EC while trying to get range with cell's name

后端 未结 12 1545
无人共我
无人共我 2020-11-30 12:30

I am working with Window Service project. that have to write data to a sheet in Excel file in a sequence times.

But sometimes, just sometimes, the service throw out

12条回答
  •  心在旅途
    2020-11-30 12:57

    Interesting enough, this error also occurs, at time of opening when the .XLS? file is incorrectly formed or require repairs.

    A hard to find error is to many rows on a .xls (old excel) file.

    Test it: manually open the affected file with excel desktop .

    I use automation to process a few hundred files daily, when this error show up, I notify the owner via mail and save the unprocessed file on a temporary location.

提交回复
热议问题