So summieren Sie den Spaltenwert in ClosedXML

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: So summieren Sie den Spaltenwert in ClosedXML

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?>

Top