
Daniel Stastka - 2013-09-25 11:55:04
The name after "Z" are false. I add my function to convert Excel Colums to the right Name. "A...B...C ...Z... AA... AB.... AC...." etc.
----- Replace Code:
'name' => $this->CellNameNumToAlpha($i+1).($curR+1),
------ Add new function:
function CellNameNumToAlpha($n)
{
$n--;
$str = "";
for($r = ""; $n >= 0; $n = intval($n / 26) - 1)
$r = chr($n%26 + 0x41) . $r;
return $r;
}
Greatings from Zurich
Dany