Repaired Records : Cell information from worksheet created from scratch

前端 未结 7 1559
醉话见心
醉话见心 2021-01-31 08:58

I\'m receiving an error when opening my OpenXML created spreadsheet. The error is as follows.

Repaired Records: Cell information from /xl/worksheets/sheet.xml p         


        
7条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-31 09:19

    Another late one - but check how you're adding cells to a row. Have you cut and paste add cell code in which there's a 'simple' compare with the existing cell reference (A1 etc) in the row? In which case if you have a cell beyond column Z - AA1 onwards - then you might end up trying to insert cell (eg) AB1) before cell B1. You'll then get this error on opening the written sheet in excel. Instead, if simply adding cell after cell along each row, just go straight to insert before with the reference cell set to null - ie. add new cell to end.

    Hope that makes sense.

提交回复
热议问题