ActiveSheetIndex is not loaded in read only mode (Excel2007 Reader)

Topics: Developer Forum
Aug 23, 2013 at 2:46 AM
in read only mode active sheet index is not loaded.
    $reader = PHPExcel_IOFactory::createReader('Excel2007');
    $excel = $objReader->load('data.xlsx');
    $sheetIndex = $excel->getActiveSheetIndex();  // work correctly


    $reader = PHPExcel_IOFactory::createReader('Excel2007');
    $reader->setReadDataOnly(true);
    $excel = $objReader->load('data.xlsx');
    $sheetIndex = $excel->getActiveSheetIndex();  // always 0 !
version 1.7.8 and maybe trunk