Answer the question
In order to leave comments, you need to log in
PhpOffice.TemplateProcessor. How to make part of a string bold when substituting a value using setValue?
We want $zn["fiz_adr"]["value"] to be bold.
Split into variables - not suitable. This is a form and depending on the choice of jur. faces different signatures must be
w:br/ - line break
$zn_word["doc_number"]["value"] = $zn["form_zack_name"]["value"].'<w:br/>'.$zn["fiz_adr"]["value"];
$templateProcessor = new \PhpOffice\PhpWord\TemplateProcessor('forms/word_temp/kopdoc_obuch_izm_stoim_dop_2.docx');
$templateProcessor->setValue('doc_number', $zn_word["doc_number"]["value"]);
$templateProcessor->saveAs('forms/upload/'.$time_dop_word);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question