I have the below code to remove cell contents in php.
$referenceNodeSIP = array(
'customQuery' => '//w:tr/w:tc[contains(., "${remove_sipcol}")]',
);
$docx->removeWordContent($referenceNodeSIP);
//below code is to remove cells of header of second portfolio table that don't have values
$referenceNodePortfolio = array(
'customQuery' => '//w:tr/w:tc[contains(., "${remove_portfolio_tbl}")]',
);
$docx->removeWordContent($referenceNodePortfolio);
When i run this code it runs and generates an output file. But when I try to open output file it doesn't get open. Got an error 'Word experienced an error trying to open the file. Try these suggestions
1. Check the file permission
2. Check the sufficient free memory
And values of the cell are set before calling the function where above code resides