By: Etienne
Date: 2014-02-28
Time: 17:51
|
Corrupt output 2Hi,
I have an analog problem. I want to merge a docx template with values from a dB and once the script has run, Word says "impossible to open the file xxx.docx. Some problems have been detected in its content". I press OK and then Word says "Word has found unreadeable content in xxx.docx. Do you want to recover the content of the document ?" and the file opens correctly with its content correctly merged. My php script is directly taken from the demo and the docx template does not contain any "special field" (only text to merge). Have any clue ? |
By: Skrol29
Date: 2014-04-03
Time: 01:10
|
Re: Corrupt outputHi,
I've put those messages in a new thread. We need more information in order to be able to help. They can be many reasons why your merging corrupts the template. |
By: Skrol29
Date: 2014-04-05
Time: 11:00
|
Re: Corrupt outputCan you send the DOCX to me ?
|
By: Etienne
Date: 2014-04-05
Time: 11:19
|
Re: Corrupt outputI'm not Bang but I can ! https://www.dropbox.com/sh/nhewiwykczjksai/PCeY3YLFlO
|
By: Skrol29
Date: 2014-04-07
Time: 23:39
|
Re: Corrupt outputHi Etienne,
I as able t run your script and open the DOCX without problem. I has to adjust the script because I did not have your SQL connexion. I can say that in yur script, the parameter "Id_AO" in the URL is mandatory. I you do not denif it in the URL, then there is a PHP notice. If the merged docx is saved on the server, then you can see the notice in the web page. But if the DOCX is to download, the the PHP notice is sent with the DOCX contents, and this make a corrupted DOCX. This is probably what you've got. In order to check if that is the problem, you can avoid the download mode at the end of the script. You can also force the debug mode in the script, this will let you read all PHP error or notice. |
By: Etienne
Date: 2014-04-08
Time: 22:31
|
Re: Corrupt outputthks, I'm going to check this !
|
By: Etienne
Date: 2014-04-10
Time: 20:21
|
Re: Corrupt outputCool it works !
|