Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

New Post: "unreadable content" error when opening Excel file created via ClosedXML

$
0
0
You may need to set the cells DataType. This is the only thing that worked in my case.

ex..

ApprovedCoursesSheet.Cell(Row, 1).DataType = XLCellValues.Text
ApprovedCoursesSheet.Cell(Row, 1).SetValue(Of Int32)(c.APPL_COURSE_ID)
ApprovedCoursesSheet.Cell(Row, 2).DataType = XLCellValues.Text
ApprovedCoursesSheet.Cell(Row, 2).SetValue(Of String)(c.APPL_COURSE_NAME)

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>