Forum


Replies: 3   Views: 3354
Adding html header in pro version not working
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 karthick  · 28-12-2011 - 09:03

html header is not working in pro version

$headers='<table width="100%" border="0"><tr><td width="78%">Document Status: Version PA1 <br>Date : $cir[created_date]<br>Managed Services - $cir[cir_team]</td>
<td width="22%" align="center"><img src="http://inside.nokiasiemensnetworks.com/_layouts/querplex/nsn/wcms3/images/furniture/nokia_siemens_networks_logo.jpg"></td>
</tr></table>';

$docx->addHeader($headers,$paramsHeader='');

Posted by admin  · 11-04-2013 - 12:13

Hello

This is a duplicate of http://www.phpdocx.com/forum?vasthtmlaction=viewtopic&t=104.0

However, HTML can not be added directly as a string, you have to add it to the library indicating that you are entering HTML. Read the documentation to learn more about this.

Regards

Posted by karthick  · 11-04-2013 - 12:13

Can you please give me example how to do this.