hello everyone
I need to add a header when exporting to Word
this code fails
any ideas
function pageExporting(&$doc)
{
$phpWord = new \PhpOffice\PhpWord\PhpWord();
$section = $phpWord->addSection();
$header = $section->addHeader();
$header->firstPage();
// Agregar contenido al encabezado utilizando los métodos de PhpWord
$header->addText("<center>IS-FT-014 Versión:0</center>");
$header->addText("<font size=8><center><b>INFORME </b></center></font>");
return true; // Return true to use default export and skip Row_Export event
}