i have one dashboard report i want export to Excel using phpexcel with table caption.
Is there any posibilities?
Help me out.
Thanks !
i have one dashboard report i want export to Excel using phpexcel with table caption.
Is there any posibilities?
Help me out.
Thanks !
Well, since you want to export the Dashboard Report, it does not support for Page_Exporting server event.
You may follow this topic, and then you need to customize the loadHtml method that belongs to the related Export class, since Report Pages use that method to display the data in the exported media/file.
I am using pageDataRendering function. Now i am facing issue is that table header is exporting but i want it as a header now it is show like a simple text. below i my code please correct it if i am wrong.
public function pageDataRendering(&$header)
{
// Example:
//$header = "your header";
if ($this->isExport("excel"))
$header = '<table><thead><tr class = "ew-table-header"><th class="ew-export-table-header ew-export"><b>BANGALORE</b></th></tr></thead></table>';
}