How to get cell value with applied formatting (formatted cell value) with OpenXML SDK

前端 未结 2 525
日久生厌
日久生厌 2020-12-15 07:42

I\'ve been googling and searching on the site for the answer, but I couldn\'t find a solution - everywhere people mostly discuss how to add new number format to the document

2条回答
  •  庸人自扰
    2020-12-15 08:10

    If you want to take cell value with applied formatting, same as displayed in Excel, use .Text property of Cell object. Like this:

    String formattedValue = cell.Text
    

提交回复
热议问题