Forum


Replies: 7   Views: 3311
Addhtml write nothing
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 naoki.peter  · 09-05-2011 - 12:06

Hi,

I'm trying to produce a docx file from basic html code:

[code]
require_once 'phpdocx_pro/classes/CreateDocx.inc';

$docx = new CreateDocx();
$html= '<p>This will insert the name in the document: <i>test</i></p>';
$docx->addHTML($html);

$docx->createDocxAndDownload('example_html');
[/code]

the file is created without any warnings / errors. But when I open the document in word, it shows only a blank page.

the code is similiar to the one at the documentation section: [url]http://www.phpdocx.com/documentation/add_html_word_document[/url]
The code in the documentation doesn't work at all.

Is there a dependency that I missed?

Greetings, naoki.peter