Forum


Replies: 12   Views: 383
Column removal
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 fairshareitservices  · 05-06-2024 - 12:23

Hi for below code table-cell is not getting deleted

$referenceNode = array(

                       'type' => 'table-cell',

                        'customQuery' => '//w:tr/w:tc[contains(., "${sipcol_removal}")]',      

                   );                  

                    $templateDocx->removeWordContent($referenceNode);

if the cell contains ${sipcol_removal} then this table-cell should get removed