Forum


Replies: 3   Views: 3015
Creating docx from newly created docx causes "cannot be opened problems with contents"
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 fishka_bmk  · 22-09-2016 - 15:28

Hi, i'm try to do, with trial version phpdocx:

$w = new CreateDocx();
$w->createDocx('w');
$z = new CreateDocxFromTemplate('w.docx');
$z->createDocx('z');

At opening z.docx, Word shows "cannot be opened problems with contents"

Help please.

Posted by admin  · 22-09-2016 - 15:35

Hello,

You need to add one content at least when you create the document. We recommend you to test and check the included examples.

Regards.

Posted by fishka_bmk  · 25-09-2016 - 19:00

$w = new CreateDocx();
$w->addText('test');
$w->createDocx('w');
$z = new CreateDocxFromTemplate('w.docx');
$z->addText('test2');
$z->createDocx('z');

 

This way couse same error when open z.docx (

Posted by admin  · 26-09-2016 - 06:27

Hello,

Sorry but as you're using the trial package and it can't be debugged we don't know what could be wrong with your script.

We recommend you to test the included examples. For further support, after you have purchased a license we can connect to your server to check and solve your scripts (or any other PHP config error).

Regards.