Forum


Replies: 5   Views: 4719
Addheader
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 nikkyb8  · 03-12-2013 - 09:54

Hi,



I'd like to insert $entete='<table class=" table1" style="height: 25px;" width="747"> <tbody> <tr> <td><img src="client/audistraining/image/logo_gestetf_pourformafast.png" alt="" width="200" height="76" /></td> </tr> </tbody> </table>';



width function Addheader but it not work...



I'm using thit :





    $rawWordML = $docx->embedHTML($entete, array('rawWordML' => true, 'target' => 'defaultHeader'));



    $entete = $docx->createWordMLFragment(array($rawWordML));

    $docx->addHeader(array('default' => $entete));



The probleme is the pics, do you tell me how can i insert pics and text in the header ?



Thank's



 



 





 

Posted by nikkyb8  · 03-12-2013 - 09:59

In fact, i can have several pics in the header


Posted by jorgelj  · 03-12-2013 - 11:07

Hello,



Please check the included examples within the library and the phpdoc.



Regards.


Posted by nikkyb8  · 03-12-2013 - 12:14

I sawthe example andif I justputthe imageon his way,Ihave noproblem, butwhen there isone or more imagesthatno longer works.

Couldyougive me an exampleto insertthis little piece ofhtmlcode: $header= '<tableclass="table1"style="height:25px;"width="747"><tbody><tr><td>src="client/image/logo.png"<imgalt=""width="200"height="76"/> </ td></ tr> </tbody> </ table> ';



Thanking you inadvance :)


Posted by nikkyb8  · 03-12-2013 - 23:11

It's ok with new version :) great