Quantcast
Channel: PHPExcel Forum Rss Feed
Viewing all articles
Browse latest Browse all 2707

New Post: Formating Columns

$
0
0
Like in Excel : a Number Format with plenty of zero ($worksheet->getStyle('A1')->getNumberFormat()->setFormatCode('0000000000')) or writing your cell as string ($worksheet->setCellValueExplicit('A1',$Value)).

Note : $worksheet=$objExcel->getActiveSheet();
The third optional parameter for setCellExplicit as a default value of PHPExcel_Cell_DataType::TYPE_STRING

Viewing all articles
Browse latest Browse all 2707