Forum


Replies: 2   Views: 3246
Array value not passing to file
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 sreekumar  · 16-03-2013 - 06:51

this is my code

<?php

require_once("C:/xampp/htdocs/phpdocx_demo/phpdocx_free/classes/CreateDocx.inc");
$docx = new CreateDocx();
$text = array();
$text[] =array('text' => 'I am going to write',);
$text[] =array('text' => ' Hello World!','b' => 'single',);

$text[] =array('text' => ' using bold characters.',);
$docx->addText($text);

$docx->createDocx('C:/xampp/htdocs/phpdocx_demo/hello_wor3sld2');
?>

error: file is generating, but no data's found. empty file.

what to do.

am using phpdocx free version.

Posted by admin  · 11-04-2013 - 12:13

Hello,

You can't use the same options if free version than pro. Please refer to included examples.

Regards.