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
I made a small template with your basic template as base and it's working
But if the fields are in the Header of the page in Excel, fields are not updated, while the same fields are updated if they are on the page.
Just to be sure I have put the same fields in the footer and in a normal cell
The text was updated successfully, but these errors were encountered:
So I just removed the IWriter type, otherwise it generate an exception ( problem between Iwriter and XlsWriter )
For your information information and/or for the example, this is how a change the PageHeader and PageFooter :
$events = [
PhpExcelTemplator::BEFORE_SAVE => function(Spreadsheet $spreadsheet, $writer) {
// fires before saving to a file. It is used when you need to modify the $writer or $spreadsheet object before saving, for example, $writer->setPreCalculateFormulas(false);
// Headers
$spreadsheet->getActiveSheet()->getHeaderFooter()->setOddHeader('New PageHeader Text);
// Footers
$spreadsheet->getActiveSheet()->getHeaderFooter()->setEvenHeader('New Text PageFooter Text');
},
];
I made a small template with your basic template as base and it's working
But if the fields are in the Header of the page in Excel, fields are not updated, while the same fields are updated if they are on the page.
Just to be sure I have put the same fields in the footer and in a normal cell
The text was updated successfully, but these errors were encountered: