Forum


Replies: 4   Views: 3404
Help cannot create simple doc
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 hhwebteam  · 11-08-2016 - 11:15

This what i have so far.

 

require_once 'library/phpdocx/classes/CreateDocx.inc';

$docx = new CreateDocx();
$text = 'Phpdocx. Easily create Word and PDF documents online';

$docx->addText($text);

$filename = 'tutorial_2.docx';
$docx->createDocx($filename);