You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your excellent job, vernes!
As my expediency, simply make little change in "render" method as following.
Please pay attention, this is only for "_usingTemplate" situation.
To reducing the unnecessary loops, I also add a parameter named "forSheet" to determine the current sheet.
public function generateReport()
{
$this->_lastColumn=$this->objWorksheet->getHighestColumn();//TODO: better detection
$this->_lastRow=$this->objWorksheet->getHighestRow();
foreach($this->_data as $data)
{
$forSheet = isset($data['forSheet']) ? $data['forSheet'] : null;
$title = $this->objWorksheet->getTitle();
if(!empty($forSheet) && $forSheet != $title){
continue;
}
...
}
...
}
i have try https://github.com/vernes/PHPReport/wiki/Examples-with-templates
this ok, but how i can make multisheet in excel template?
how i can manage array with one in multisheet...
The text was updated successfully, but these errors were encountered: