private function PHPExcel_Writer_Excel5_Worksheet::_writeMarginTop in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel5/Worksheet.php \PHPExcel_Writer_Excel5_Worksheet::_writeMarginTop()
* Store the TOPMARGIN BIFF record.
1 call to PHPExcel_Writer_Excel5_Worksheet::_writeMarginTop()
- PHPExcel_Writer_Excel5_Worksheet::close in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel5/ Worksheet.php - * Add data to the beginning of the workbook (note the reverse order) * and to the end of the workbook. * * @access public *
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel5/ Worksheet.php, line 1999
Class
- PHPExcel_Writer_Excel5_Worksheet
- PHPExcel_Writer_Excel5_Worksheet
Code
private function _writeMarginTop() {
$record = 0x28;
// Record identifier
$length = 0x8;
// Bytes to follow
$margin = $this->_phpSheet
->getPageMargins()
->getTop();
// Margin in inches
$header = pack("vv", $record, $length);
$data = pack("d", $margin);
if (self::getByteOrder()) {
// if it's Big Endian
$data = strrev($data);
}
$this
->_append($header . $data);
}