✅ Read a xlsx file with c#
I am trying to read a xlsx file "Distance.xlsx" with an array of string, just like this code:
But it only return of bunch of random symbol, do u know how I shloud procede to read my file?
6 Replies
excel files are not plaintext
its like trying to read an imagefile with notepad, it aint gonna work
$closedxml is nice to read excel
ah
$excel better
ClosedXML 0.102.2
See release notes https://github.com/ClosedXML/ClosedXML/releases/tag/0.102.2 ClosedXML is a .NET library for reading, manipulating and writing Excel 2007+ (.xlsx, .xlsm) files. It aims to provide an intuitive and user-friendly interface to dealing with the underlying OpenXML API.
thx, closedxml worked, I did this :
And it worked well
how do I mark that this problem is solved?
Use the /close command to mark a forum thread as answered
thx for you help