HRESULT: 0x800A03EC on Worksheet.range

前端 未结 23 2148
Happy的楠姐
Happy的楠姐 2020-11-22 07:42

I am getting HRESULT: 0x800A03EC on Worksheet.range method. Number of rows are more than 70K. Office 2007.

Code:

Microsoft.Office.Interop.Excel.Range         


        
23条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 08:31

    I also faced the same issue, when I was developing a application which exports project contents into excel file.

    I could not found the resolution in forums for my problem, then I check the maximum capacity of excel and found below link which says

    "Worksheet size 1,048,576 rows by 16,384 columns" and this was the issue in my case, I was exporting more than that rows. Refer below link for details

    http://answers.microsoft.com/en-us/office/forum/office_2013_release-excel/with-excel-2013how-many-rows-will-this-contain/271264fb-3ab8-4c5b-aa0d-7095c5ac6108

    Regards Prashant Neve

提交回复
热议问题