Forum


Replies: 11   Views: 3936
Don't work in google doc viewer (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 acanthis  · 04-10-2013 - 06:56


$html = '<table style="border-collapse: collapse; width: 200px;" border="1">
<tbody>
<tr>
<td>123</td>
<td>321</td>
</tr>
</tbody>
</table>';
$docx = new CreateDocx();
$docx->embedHTML($html);
$docx->createDocx('test');


Don't show in GDocs Viewer.



It is noteworthy that, if I re-save file as 'test.docx' in MS Word, I can view this file in GDocs Viewer



Proof:



Before re-save: 



https://docs.google.com/viewer?url=http://fs1.d-h.st/download/00075/FdD/test.docx



After re-save: 



https://docs.google.com/viewer?url=http://fs1.d-h.st/download/00075/UC5/test.docx