I am using PdfGrid to create a table in a PDF, from a list of
objects. Is there a way to sum up all of the values in one of the
columns and provide either an extra row in the table with the sum, or in
a field directly below the table?
byte[] bytes = GetFileBytes(filePath);
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(bytes);
PdfLoadedForm form = loadedDocument.Form;
PdfGrid grid = new PdfGrid();
List<LateCharge> lateCharges = GetLateCharges();
grid.DataSource = lateCharges;
Ex:
Column 1
| Column 2
| Column 3
|
abc
| true
| 12.00
|
efg
| false
| 13.00
|
|
|
|
| TOTAL | 25.00
|