Forum


Replies: 4   Views: 3984
Call to undefined method createdocx::embedhtml()
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 Baliui  · 29-10-2012 - 12:32

Hi Guys!

I get this error when i try to use your docx lib.

Thats what i write:

<?php
$content=$_POST['content'];
require_once 'docx/classes/CreateDocx.inc';
$docx = new CreateDocx();
$docx->embedHTML($content);
$docx->modifyPageLayout('A4');
$docx->createDocx($_POST['documentname'])
?>

And this is the error what i get:

Fatal error: Call to undefined method CreateDocx::embedHTML() in

Posted by Squad internet  · 11-04-2013 - 12:13

As far as I remember, the embedHtml() is only available in the PRO version.
What version are you using?

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

i use the free version.

Posted by Squad internet  · 11-04-2013 - 12:13

Then sry mate, embedHTML() is only available in the PRO version.