|
@@ -1724,13 +1724,21 @@ function excelRCData($summaryData,$cellCount,$year){
|
|
|
Doo::loadClass ( 'PHPExcel1.7.9/PHPExcel' );
|
|
|
$obj = new PHPExcel ();
|
|
|
|
|
|
- echo ($cellCount/26).'</br>';
|
|
|
- echo ($cellCount%26).'</br>';
|
|
|
+ $colNum=1;
|
|
|
+ for ($col='A';$colNum<=$cellCount;$col++){
|
|
|
+ $obj->getActiveSheet()->getColumnDimension($col)->setWidth(25);
|
|
|
+ $colNum++;
|
|
|
+ }
|
|
|
|
|
|
- echo $cellCount;die;
|
|
|
- cellColor('A1:', 'ddebf7',$obj);
|
|
|
+ $obj->getActiveSheet()->getDefaultRowDimension()->setRowHeight(18);
|
|
|
|
|
|
- $obj->getActiveSheet()->getStyle('A1:J1')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
|
|
|
+// echo (int)($cellCount/26).'</br>';
|
|
|
+// echo ($cellCount%26).'</br>';
|
|
|
+
|
|
|
+// echo $cellCount;die;
|
|
|
+// cellColor('A1:', 'ddebf7',$obj);
|
|
|
+
|
|
|
+ //$obj->getActiveSheet()->getStyle('A1:J1')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);
|
|
|
|
|
|
$objWrite = PHPExcel_IOFactory::createWriter ( $obj, 'Excel2007' );
|
|
|
header ( 'pragma:public' );
|