TwigExcelBundle icon indicating copy to clipboard operation
TwigExcelBundle copied to clipboard

Multiple sheets, last one active?? How to select the first one...

Open catasoft opened this issue 7 years ago • 0 comments

Hi, I generate a document with more sheets. I couldn't find a way to activate the first sheet, so that when the document is opened, the first one is opened automatically. Right now, the last one is opened by default, which is not nice. Is there any way to do this? Looking into code, the only ways that the function setActiveSheetIndex()/setActiveSheetIndexName() is called is in XlsSheetWrapper.php, in function start(), I would expect it to be called in function end() of XlsDocumentWrapper.php.

If there's not such functionality, is there any way to gain access to the phpExcel object and call this function manually?

Thank you!

catasoft avatar Jul 04 '17 12:07 catasoft