当前位置: 首页>>代码示例>>PHP>>正文


PHP PHPExcel_Worksheet::getShowSummaryBelow方法代码示例

本文整理汇总了PHP中PHPExcel_Worksheet::getShowSummaryBelow方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPExcel_Worksheet::getShowSummaryBelow方法的具体用法?PHP PHPExcel_Worksheet::getShowSummaryBelow怎么用?PHP PHPExcel_Worksheet::getShowSummaryBelow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PHPExcel_Worksheet的用法示例。


在下文中一共展示了PHPExcel_Worksheet::getShowSummaryBelow方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _writeWsbool

 /**
  * Write the WSBOOL BIFF record, mainly for fit-to-page. Used in conjunction
  * with the SETUP record.
  */
 private function _writeWsbool()
 {
     $record = 0x81;
     // Record identifier
     $length = 0x2;
     // Bytes to follow
     $grbit = 0x0;
     // The only option that is of interest is the flag for fit to page. So we
     // set all the options in one go.
     //
     // Set the option flags
     $grbit |= 0x1;
     // Auto page breaks visible
     if ($this->_outline_style) {
         $grbit |= 0x20;
         // Auto outline styles
     }
     if ($this->_phpSheet->getShowSummaryBelow()) {
         $grbit |= 0x40;
         // Outline summary below
     }
     if ($this->_phpSheet->getShowSummaryRight()) {
         $grbit |= 0x80;
         // Outline summary right
     }
     if ($this->_phpSheet->getPageSetup()->getFitToPage()) {
         $grbit |= 0x100;
         // Page setup fit to page
     }
     if ($this->_outline_on) {
         $grbit |= 0x400;
         // Outline symbols displayed
     }
     $header = pack("vv", $record, $length);
     $data = pack("v", $grbit);
     $this->_append($header . $data);
 }
开发者ID:ljhchshm,项目名称:weixin,代码行数:41,代码来源:Worksheet.php

示例2: _writeSheetPr

 /**
  * Write SheetPr
  *
  * @param	PHPExcel_Shared_XMLWriter		$objWriter		XML Writer
  * @param	PHPExcel_Worksheet				$pSheet			Worksheet
  * @throws	Exception
  */
 private function _writeSheetPr(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
 {
     // sheetPr
     $objWriter->startElement('sheetPr');
     //$objWriter->writeAttribute('codeName',		$pSheet->getTitle());
     // tabColor
     if ($pSheet->isTabColorSet()) {
         $objWriter->startElement('tabColor');
         $objWriter->writeAttribute('rgb', $pSheet->getTabColor()->getARGB());
         $objWriter->endElement();
     }
     // outlinePr
     $objWriter->startElement('outlinePr');
     $objWriter->writeAttribute('summaryBelow', $pSheet->getShowSummaryBelow() ? '1' : '0');
     $objWriter->writeAttribute('summaryRight', $pSheet->getShowSummaryRight() ? '1' : '0');
     $objWriter->endElement();
     // pageSetUpPr
     if ($pSheet->getPageSetup()->getFitToPage()) {
         $objWriter->startElement('pageSetUpPr');
         $objWriter->writeAttribute('fitToPage', '1');
         $objWriter->endElement();
     }
     $objWriter->endElement();
 }
开发者ID:honj51,项目名称:taobaocrm,代码行数:31,代码来源:Worksheet.php

示例3: _writeSheetPr

 /**
  * Write SheetPr
  *
  * @param	PHPExcel_Shared_XMLWriter		$objWriter		XML Writer
  * @param	PHPExcel_Worksheet				$pSheet			Worksheet
  * @throws	Exception
  */
 private function _writeSheetPr(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
 {
     // sheetPr
     $objWriter->startElement('sheetPr');
     $objWriter->writeAttribute('codeName', $pSheet->getTitle());
     // outlinePr
     $objWriter->startElement('outlinePr');
     $objWriter->writeAttribute('summaryBelow', $pSheet->getShowSummaryBelow() ? '1' : '0');
     $objWriter->writeAttribute('summaryRight', $pSheet->getShowSummaryRight() ? '1' : '0');
     $objWriter->endElement();
     // pageSetUpPr
     if (!is_null($pSheet->getPageSetup()->getFitToHeight()) || !is_null($pSheet->getPageSetup()->getFitToWidth())) {
         $objWriter->startElement('pageSetUpPr');
         $objWriter->writeAttribute('fitToPage', '1');
         $objWriter->endElement();
     }
     $objWriter->endElement();
 }
开发者ID:abhinay100,项目名称:fengoffice_app,代码行数:25,代码来源:Worksheet.php

示例4: _writeSheetPr

 /**
  * Write SheetPr
  *
  * @param	PHPExcel_Shared_XMLWriter		$objWriter		XML Writer
  * @param	PHPExcel_Worksheet				$pSheet			Worksheet
  * @throws	PHPExcel_Writer_Exception
  */
 private function _writeSheetPr(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
 {
     // sheetPr
     $objWriter->startElement('sheetPr');
     //$objWriter->writeAttribute('codeName',		$pSheet->getTitle());
     if ($pSheet->getParent()->hasMacros()) {
         //if the workbook have macros, we need to have codeName for the sheet
         if ($pSheet->hasCodeName() == false) {
             $pSheet->setCodeName($pSheet->getTitle());
         }
         $objWriter->writeAttribute('codeName', $pSheet->getCodeName());
     }
     $autoFilterRange = $pSheet->getAutoFilter()->getRange();
     if (!empty($autoFilterRange)) {
         $objWriter->writeAttribute('filterMode', 1);
         $pSheet->getAutoFilter()->showHideRows();
     }
     // tabColor
     if ($pSheet->isTabColorSet()) {
         $objWriter->startElement('tabColor');
         $objWriter->writeAttribute('rgb', $pSheet->getTabColor()->getARGB());
         $objWriter->endElement();
     }
     // outlinePr
     $objWriter->startElement('outlinePr');
     $objWriter->writeAttribute('summaryBelow', $pSheet->getShowSummaryBelow() ? '1' : '0');
     $objWriter->writeAttribute('summaryRight', $pSheet->getShowSummaryRight() ? '1' : '0');
     $objWriter->endElement();
     // pageSetUpPr
     if ($pSheet->getPageSetup()->getFitToPage()) {
         $objWriter->startElement('pageSetUpPr');
         $objWriter->writeAttribute('fitToPage', '1');
         $objWriter->endElement();
     }
     $objWriter->endElement();
 }
开发者ID:Adeelgill,项目名称:livehelperchat,代码行数:43,代码来源:Worksheet.php

示例5: _writeSheetPr

 /**
  * Write SheetPr
  *
  * @param 	PHPExcel_Shared_XMLWriter		$objWriter 		XML Writer
  * @param 	PHPExcel_Worksheet				$pSheet			Worksheet
  * @throws 	Exception
  */
 private function _writeSheetPr(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel_Worksheet $pSheet = null)
 {
     // sheetPr
     $objWriter->startElement('sheetPr');
     $objWriter->writeAttribute('codeName', $pSheet->getTitle());
     // outlinePr
     $objWriter->startElement('outlinePr');
     $objWriter->writeAttribute('summaryBelow', $pSheet->getShowSummaryBelow() ? '1' : '0');
     $objWriter->writeAttribute('summaryRight', $pSheet->getShowSummaryRight() ? '1' : '0');
     $objWriter->endElement();
     $objWriter->endElement();
 }
开发者ID:hostellerie,项目名称:nexpro,代码行数:19,代码来源:Worksheet.php


注:本文中的PHPExcel_Worksheet::getShowSummaryBelow方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。