Forum


Replies: 5   Views: 2872
Createdocx() dumps html on screen
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 darren77  · 18-03-2013 - 16:56

I am experiencing a problem

Using a simple:

$this -> docx = new CreateDocx();
$this -> docx -> createDocx(TEMP_PATH . 'appendix_3'. EXT);

I found some HTML dumped on screen:

<html xmlns="http://www.w3.org/1999/xhtml"xml:lang="es" lang="es"><head></head><body><ul></ul></body></html>

Any suggestion?

Cheers

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

Hello,

You need to add at least one content.

Regards.

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

That does not make any difference, it was just an example to track down where the problem was...

The only way to avoid it is to use addTemplate()

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

Hello,

Could you run Text.php and HTML.php examples and paste the output?.

Regards.

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

no output (HTML) on the page...

I guess I am doing something wrong myself