Piixel
Piixel
CC#
Created by Piixel on 4/18/2024 in #help
✅ Read a xlsx file with c#
thx for you help
11 replies
CC#
Created by Piixel on 4/18/2024 in #help
✅ Read a xlsx file with c#
how do I mark that this problem is solved?
11 replies
CC#
Created by Piixel on 4/18/2024 in #help
✅ Read a xlsx file with c#
thx, closedxml worked, I did this :
string cheminFichier = "filepath";

using (var classeur = new XLWorkbook(cheminFichier))
{
var feuille = classeur.Worksheet(1);

foreach (var cellule in feuille.CellsUsed())
{
Console.WriteLine($"Cellule {cellule.Address}: {cellule.Value}");
}
}
string cheminFichier = "filepath";

using (var classeur = new XLWorkbook(cheminFichier))
{
var feuille = classeur.Worksheet(1);

foreach (var cellule in feuille.CellsUsed())
{
Console.WriteLine($"Cellule {cellule.Address}: {cellule.Value}");
}
}
And it worked well
11 replies