There is no right border

Topics: User Forum
Oct 15, 2012 at 4:37 PM

Hi everybody. 

I've got a problem : I'd like to have right border on my cells. I can have left, top bottom borders, but no right borders. :

 

$formatBordure = array(
		'borders' => array(
			'allborders' => array(
				'style' => PHPExcel_Style_Border::BORDER_THIN,
			),
			'inside' => array(
				'style' => PHPExcel_Style_Border::BORDER_THIN,
			),
			'vertical' => array(
				'style' => PHPExcel_Style_Border::BORDER_THIN,
			),
		),
	);
$objPHPExcel->getActiveSheet()->getStyle('A1')->applyFromArray($formatBordure);
	$objPHPExcel->getActiveSheet()->getStyle('A2:D2')->applyFromArray($formatBordure);
	$objPHPExcel->getActiveSheet()->getStyle('B2:B4')->applyFromArray($formatBordure);
	$objPHPExcel->getActiveSheet()->getStyle('A5:B5')->applyFromArray($formatBordure);
	

I've tried with allborders, outline, left, right, etc... but it won't work. Can someone help me ?