我在Worksheet.range方法上獲得HRESULT:0x800A03EC。行數超過70K。 Office 2007的HRESULT:0x800A03EC在Worksheet.range
代碼:
Microsoft.Office.Interop.Excel.Range neededRange
= currentWS.Range[cell.Cells[1, 1], cell.Cells[nRowCount, nColumnCount]];
這裏我行數超過65530。打破這個功能。我觀察到,它只有當行數超過65530時纔會中斷。
如果你正在尋找答案,一小段代碼片段或多一點上下文不會傷害 – Eddy
'Microsoft.Office.Interop.Excel.Range neededRange = currentWS.Range [cell.Cells [1,1],cell。單元格[nRowCount,nColumnCount]];'在這裏,我的行數超過66000.列數是18.打破這個功能。 – Cannon
使用Excel 2010,我可以得到一個沒有問題的範圍。檢查你的問題是否真的是使用Range方法,或者cell.Cells [nRowCount,nColumnCount]引起異常。 – Eddy