//取得总列数
private function maxCols()
{
$i=1;
while(true)
{
if(0==$this->worksheet->Cells(1,$i))
{
return $i;
break;
}
$i++;
}
}
//取得总行数
private function maxRows()
{
$i=1;
while(true)
{
if(0==$this->worksheet->Cells($i,1))
{
return $i;
break;
}
$i++;
}
}