예제 #1
0
 function __construct(&$tbl = NULL, $style = "")
 {
     parent::__construct($tbl, $style);
     $this->XmlDoc = new cXMLDocument(EW_XML_ENCODING);
 }
예제 #2
0
 function __construct(&$tbl, $style)
 {
     parent::__construct($tbl, $style);
     $this->phpexcel = new PHPExcel();
     $this->phpexcel->setActiveSheetIndex(0);
     if ($tbl->ExportExcelPageOrientation != "") {
         $this->PageOrientation = $tbl->ExportExcelPageOrientation;
     }
     if ($tbl->ExportExcelPageSize != "") {
         $this->PageSize = $tbl->ExportExcelPageSize;
     }
     $this->phpexcel->getActiveSheet()->getPageSetup()->setOrientation($this->PageOrientation);
     $this->phpexcel->getActiveSheet()->getPageSetup()->setPaperSize($this->PageSize);
     if (function_exists("PHPExcel_Rendering")) {
         // For user's own use only
         PHPExcel_Rendering($this->phpexcel->getActiveSheet());
     }
 }