I have successfully generated on the fly an excel document having multiple worksheets with index on first sheet using PHP Spreadsheet_Excel_Writer_Worksheet.
But I am unable to print html data in multiple worksheets.
I am using following link of code.
<?php
$html = <html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div align="center">Hello</div></body></html>
$worksheet->write(
0,
0,
$html,
$formatData); ?>
When tried above code, it's chunk out the html data and print it as html code not parsing it.