[BUG] Render with PDF setActiveSheetIndex not working

Topics: Developer Forum
Sep 2, 2015 at 1:41 PM
Edited Sep 2, 2015 at 1:44 PM

I'm using since a year phpexcel, today I have troubles to render the xlsx to pdf (tcpdf and mpdf60).

I'm only able to render the xlsx with the first sheet, not another or last sheet, I downloaded phpexcel1.8.0 and tried it in the demo file, same issue.
My code (little bit different from 01-simple-download-pdf.php):

So I copy the Sheet with name simple:
$newSheet = clone $objPHPExcel->getSheetByName("Simple");
Call it to Simple2
add it:
$objPHPExcel->addSheet($newSheet, 1);
Changes the cellvalue of a1 from "Hello" to "Hi there!"
    ->setCellValue('A1', 'Hi there!');
Set Active sheet again:
And now I render it with mpdf60, and I get the first sheet, not the second :(

Is that a really bug, or is it my mistake?