Forum


Replies: 3   Views: 4152
Multi-line text
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by nikkyb8  · 18-11-2013 - 18:22

Hello,



I tryto usethis function:

CreateDocx$docx= new();

$docx->AddTemplate('/var /www /docx/ examples/ files /test_template_moi.docx');



$ text= array (

     'DavidHume'

     '-----------'

     'Bye'

);



$docx->addTemplateVariable('NAME',$ text);





$docx->cleanTemplateVariable('VARIABLE', 'block');

$docx->createDocxAndDownload('/tmp /' $_SESSION["username"]'_'$ _SESSION["user_id"]'/''sss'.....)



But with:

  $ Text= array (

      'DavidHume'

      '-----------'

      'Bye'

);

Itdoes not work anymore....

How to displaythe textin multiline?