by Anonymous » 08 Apr 2025, 15:52
Ich habe 9 Spalten und
ich möchte den Wert jeder Spalte in Closedxml summieren. < /p>
Dies sind die Spalten: < /p>
Code: Select all
foreach (Attivita attivita in listaSomthing)
{
worksheet.Cell(index, 1).Value = attivita.Somthing;
worksheet.Cell(index, 2).Value = attivita.Somthing;
worksheet.Cell(index, 3).Value = attivita.Somthing;
worksheet.Cell(index, 4).Value = attivita.Somthing;
worksheet.Cell(index, 5).Value = attivita.Somthing;
worksheet.Cell(index, 6).Value = attivita.Somthing;
worksheet.Cell(index, 7).Value = attivita.Somthing;
worksheet.Cell(index, 8).Value = attivita.Somthing;
worksheet.Cell(index, 9).Value = attivita.Somthing;
}
Ich muss die Gesamtsumme von Cell (Index, 1), Cell (Index, 2) ... Cell (Index, 9). /> Ich habe keine nützlichen Informationen in der Closedxml -Dokumentation gefunden. < /p>
Kann mir bitte jemand helfen?>
Ich habe 9 Spalten und [url=viewtopic.php?t=14917]ich möchte[/url] den Wert jeder Spalte in Closedxml summieren. < /p>
Dies sind die Spalten: < /p>
[code]foreach (Attivita attivita in listaSomthing)
{
worksheet.Cell(index, 1).Value = attivita.Somthing;
worksheet.Cell(index, 2).Value = attivita.Somthing;
worksheet.Cell(index, 3).Value = attivita.Somthing;
worksheet.Cell(index, 4).Value = attivita.Somthing;
worksheet.Cell(index, 5).Value = attivita.Somthing;
worksheet.Cell(index, 6).Value = attivita.Somthing;
worksheet.Cell(index, 7).Value = attivita.Somthing;
worksheet.Cell(index, 8).Value = attivita.Somthing;
worksheet.Cell(index, 9).Value = attivita.Somthing;
}
[/code]
Ich muss die Gesamtsumme von Cell (Index, 1), Cell (Index, 2) ... Cell (Index, 9). /> Ich habe keine nützlichen Informationen in der Closedxml -Dokumentation gefunden. < /p>
Kann mir bitte jemand helfen?>