By: mpol
Date: 2015-07-13
Time: 10:32
|
$TBS->Show() generating error
Hello
I am using the the following code, which enable me to save the created doc on the server. Perfect.
$file_name = 'Template_'.$GruppId.'_'.$Code;
$TBS->Show(OPENTBS_FILE, 'vorlagen/'.$file_name . '.docx');
But When I use $TBS->Show(); then I am getting a error message that the document is damaged.
I do not want to save the document on the server and therefor need the show the generated file.
What is wrong? I am using word 2010.
thanks
mpol_ch
|
By: Skrol29
Date: 2015-07-14
Time: 17:17
|
Re: $TBS->Show() generating error
Hi MPol,
The command « $TBS->Show() » does not simply output the content, it also perform several processing to the document before to commit the result.
Thus, you cannot do Show() twice on a merged document.
The best way in your case is to output the content of the document that you have previously saved on the server.
|