private function PHPExcel_Writer_Excel5_Worksheet::_writeExterncount in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Worksheet.php \PHPExcel_Writer_Excel5_Worksheet::_writeExterncount()
* Write BIFF record EXTERNCOUNT to indicate the number of external sheet * references in a worksheet. * * Excel only stores references to external sheets that are used in formulas. * For simplicity we store references to all the sheets in the workbook * regardless of whether they are used or not. This reduces the overall * complexity and eliminates the need for a two way dialogue between the formula * parser the worksheet objects. * *
Parameters
integer $count The number of external sheet references in this worksheet:
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel5/ Worksheet.php, line 1685
Class
- PHPExcel_Writer_Excel5_Worksheet
- PHPExcel_Writer_Excel5_Worksheet
Code
private function _writeExterncount($count) {
$record = 0x16;
// Record identifier
$length = 0x2;
// Number of bytes to follow
$header = pack("vv", $record, $length);
$data = pack("v", $count);
$this
->_append($header . $data);
}