Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

phpexcel set data type

$objPHPExcel->setActiveSheetIndex(0)
    ->setCellValue('A1', 'Field Name');
    
$objPHPExcel->getActiveSheet()->getColumnDimension('A')->setWidth(50);

$columnArray    = array("A","B","C","D","E","F","G","H");
	
$objPHPExcel->setActiveSheetIndex(0)
->setCellValueExplicit("A", VALUE, PHPExcel_Cell_DataType::TYPE_STRING)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #phpexcel #set #data #type
ADD COMMENT
Topic
Name
8+6 =