Forum


Replies: 4   Views: 4746
Replace a placeholder with table
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 darren77  · 28-11-2012 - 22:33

I have a template with 30 pages and I want to enter a table at a specific point, where I set for example a variable $TABLE_1$, on page 12 for example.

How can I replace a variable with a table?

Thanks

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

Hello,

You can use replaceTemplateVariableByHTML to do that. Just add a table in HTML and replace your placeholder using replaceTemplateVariableByHTML.

Regards.

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

How can I have the table spanning the whole width of my page?

I tried to add inline css like width:100%; or width:600px; in the HTML but it does not change anything

Thanks

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

Hello,

Please check this:

http://www.phpdocx.com/help/forum?vasthtmlaction=viewtopic&t=2799.0

Regards.