So summieren Sie den Spaltenwert in ClosedXMLC#

Ein Treffpunkt für C#-Programmierer
Anonymous
 So summieren Sie den Spaltenwert in ClosedXML

Post by Anonymous »

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

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post