How to insert programmatically a new line in an Excel cell in C#?

后端 未结 13 1064
情话喂你
情话喂你 2020-12-30 00:32

I\'m using the Aspose library to create an Excel document. Somewhere in some cell I need to insert a new line between two parts of the text.

I tried \"\\r\\n\" but i

相关标签:
13条回答
  • 2020-12-30 01:28

    Internally Excel uses U+000D U+000A (CR+LF, \r\n) for a line break, at least in its XML representation. I also couldn't find the value directly in a cell. It was migrated to another XML file containing shared strings. Maybe cells that contain line breaks are handled differently by the file format and your library doesn't know about this.

    0 讨论(0)
提交回复
热议问题