Posted 10 July 2019, 7:25 pm EST
Hi!
I’m trying to get from a cell his real header, to be able to make formulas relative to a cell.
I need, on workbook initialize, to recognize a cell and create into it a formula that sums everything above it.
The problem is the following:
<!-- colonna statica per il nome della riga -->
<gc-column [headerText]="'Dimensione'"
[width]="100"
[dataField]="'rowName'">
</gc-column>
As you can see, column have a cutom header text.
When I do something like this… :
tempSheet.getSheet().getValue(i, 0, GC.Spread.Sheets.SheetArea.colHeader)
… the value that I get is “Dimensione”, but I nead the column reference instead header name to make a formula from this cell to every cell above.
Infact this will not work:
tempSheet.getSheet().setFormula(0, j, 'SUM(Dimensione1+Dimensione2)');
Instead of something like this:
tempSheet.getSheet().setFormula(0, j, 'SUM(A1+A2)');
I need to get the “A” that reference the column!
Thanks in advance