Quantcast
Channel: PHPWord
Viewing all articles
Browse latest Browse all 450

New Post: Variable on Footer of Docx Template

$
0
0
hi,

I'm utilized the code customized by Matt. But not works for me.
I try define a variable at the header unsuccessfully.
see:

require_once 'PHPWord/PHPWord.php';

$PHPWord = new PHPWord();

$document = $PHPWord->loadTemplate('Planejamento_frete.docx');
$document->setValue('Header1', 'Eduardo Antonio Alves de Souza');
$document->save('/home/sgi3/src/intra/share/SWorkspace/AWorkflamma/ClassTemplate/blocos/SGDN/Novediacv.docx');

could help me

Viewing all articles
Browse latest Browse all 450

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>