function _storeVbreak()
    {
        // Return if the user hasn't specified pagebreaks
        if (empty($this->_vbreaks)) {
            return;
        }

        // 1000 vertical pagebreaks appears to be an internal Excel 5 limit.
        // It is slightly higher in Excel 97/200, approx. 1026
        $breaks = array_slice($this->_vbreaks,0,1000);

        // Sort and filter array of page breaks
        sort($breaks, SORT_NUMERIC);
        if ($breaks[0] == 0) { // don't use first break if it's 0
            array_shift($breaks);
        }

        $record  = 0x001a;               // Record identifier
        $cbrk    = count($breaks);       // Number of page breaks
        if ($this->_BIFF_version == 0x0600) {
            $length  = 2 + 6*$cbrk;      // Bytes to follow
        } else {
            $length  = 2 + 2*$cbrk;      // Bytes to follow
        }

        $header  = pack("vv",  $record, $length);
        $data    = pack("v",   $cbrk);

        // Append each page break
        foreach ($breaks as $break) {
            if ($this->_BIFF_version == 0x0600) {
                $data .= pack("vvv", $break, 0x0000, 0xffff);
            } else {
                $data .= pack("v", $break);
            }
        }

        $this->_prepend($header . $data);
    }
function _storeVbreak()
    {
        // Return if the user hasn't specified pagebreaks
        if (empty($this->_vbreaks)) {
            return;
        }

        // 1000 vertical pagebreaks appears to be an internal Excel 5 limit.
        // It is slightly higher in Excel 97/200, approx. 1026
        $breaks = array_slice($this->_vbreaks,0,1000);

        // Sort and filter array of page breaks
        sort($breaks, SORT_NUMERIC);
        if ($breaks[0] == 0) { // don't use first break if it's 0
            array_shift($breaks);
        }

        $record  = 0x001a;               // Record identifier
        $cbrk    = count($breaks);       // Number of page breaks
        if ($this->_BIFF_version == 0x0600) {
            $length  = 2 + 6*$cbrk;      // Bytes to follow
        } else {
            $length  = 2 + 2*$cbrk;      // Bytes to follow
        }

        $header  = pack("vv",  $record, $length);
        $data    = pack("v",   $cbrk);

        // Append each page break
        foreach ($breaks as $break) {
            if ($this->_BIFF_version == 0x0600) {
                $data .= pack("vvv", $break, 0x0000, 0xffff);
            } else {
                $data .= pack("v", $break);
            }
        }

        $this->_prepend($header . $data);
    }
function _storeVbreak ( ) { // Return if the user hasn't specified pagebreaks
 if ( empty ( $ this -> _vbreaks ) ) { return ; } // 1000 vertical pagebreaks appears to be an internal Excel 5 limit.
 // It is slightly higher in Excel 97/200, approx. 1026
 $ breaks = array_slice ( $ this -> _vbreaks , 0 , 1000 ) ; // Sort and filter array of page breaks
 sort ( $ breaks , SORT_NUMERIC ) ; if ( $ breaks [ 0 ] == 0 ) { // don't use first break if it's 0
 array_shift ( $ breaks ) ; } $ record = 0x001a ; // Record identifier
 $ cbrk = count ( $ breaks ) ; // Number of page breaks
 if ( $ this -> _BIFF_version == 0x0600 ) { $ length = 2 + 6 * $ cbrk ; // Bytes to follow
 } else { $ length = 2 + 2 * $ cbrk ; // Bytes to follow
 } $ header = pack ( "vv" , $ record , $ length ) ; $ data = pack ( "v" , $ cbrk ) ; // Append each page break
 foreach ( $ breaks as $ break ) { if ( $ this -> _BIFF_version == 0x0600 ) { $ data .= pack ( "vvv" , $ break , 0x0000 , 0xffff ) ; } else { $ data .= pack ( "v" , $ break ) ; } } $ this -> _prepend ( $ header . $ data ) ; }
Write the VERTICALPAGEBREAKS BIFF record.

@access private
Write the VERTICALPAGEBREAKS BIFF record .