Forum


Replies: 4   Views: 3437
Some error with phpdocx pro
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 marcushjortsberg  · 26-06-2011 - 17:37

I am doing this

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

$docx = new CreateDocx();

$text = 'Lorem ipsum dolor sit amet.';

$docx->addText($text, $paramsText);

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

but when the file is to be created I only get errors from my OFFICE WORD, it says that the file is damaged...

and if I do

[code]$docx = new CreateDocx();

$docx->addText('DOCX content');

$docx->addText('End DOCX content');

$docx->createDocx('example_docx');[/code]

I get an error from my browser, "Fatal error: Class 'JBrowser' not found in /customers/mysite.com/mysite.com/httpd.www/plugins/system/juga.php on line 176 "

(I am using Joomla, and this I am trying to put in a view, I have put it in controller before with success...I can't make any sence of this...)