php - Set the zoom level for the html file generated using PHPExcel? -


i trying generate html file using phpexcel. have more 30 columns , zoom page.

i've tried using code below, hasn't worked.

$objphpexcel->getactivesheet()->getpagesetup()->setfittopage(true); $objphpexcel->getactivesheet()->getpagesetup()->setfittowidth(2); 

i've tried using this, hasn't worked either.

$objphpexcel->getactivesheet()->getsheetview()->setzoomscale(250); 

both options don't work in case of html page, zoom works if excel file. going wrong?

as may see chaining of commands, setzoomscale() method part of worksheet class , have impact in case worksheet written, not when read.

the phpdoc phpexcel lists internal command _writesheetviews() excel2007 writer , _storezoom old excel versions whereas phpexcel_writer_html doesn't offer similar behavior.

what may try adding custom css styling created html file may use smaller font-sizes table. afaik won't able change zoom level of browser programmatically.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -