Error reading excel cell with line break into Dataset

僤鯓⒐⒋嵵緔 提交于 2019-12-11 20:58:11

问题


I have a peculiar issue where I am trying to read values from excel into a dataset in c#.

Some of my excel cell contains a line break like this. (Press Alt+ Enter in a cell to include line break within a cell)

While reading this excel in my program through Fill Command. This line break is read as "_".

How do i address this scenario? Either I want to clean up all the escape sequence before importing from excel.

来源:https://stackoverflow.com/questions/25987524/error-reading-excel-cell-with-line-break-into-dataset

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!