caipin 5 years atrás
parent
commit
8d64bc0e5a
1 changed files with 11 additions and 1 deletions
  1. 11 1
      protected/class/receipt.func.php

+ 11 - 1
protected/class/receipt.func.php

@@ -1724,6 +1724,7 @@ function excelRCData($summaryData,$cellCount,$year){
 	Doo::loadClass ( 'PHPExcel1.7.9/PHPExcel' );
 	$obj = new PHPExcel ();
 	
+	//设置宽高
 	$colNum=1;
 	for ($col='A';$colNum<=$cellCount;$col++){
 		$obj->getActiveSheet()->getColumnDimension($col)->setWidth(18);
@@ -1731,9 +1732,18 @@ function excelRCData($summaryData,$cellCount,$year){
 		cellColor($col.'3', 'ddebf7',$obj);
 		$colNum++;
 	}
-	
 	$obj->getActiveSheet()->getDefaultRowDimension()->setRowHeight(18);
 	
+	//设置边框
+	$styleThinBlackBorderOutline = array(
+			'borders' => array(
+					'allborders' => array( //设置全部边框
+							'style' => \PHPExcel_Style_Border::BORDER_THIN //粗的是thick
+					),
+					
+			),
+	);
+	
 // 	echo (int)($cellCount/26).'</br>';
 // 	echo ($cellCount%26).'</br>';