Forum


Replies: 1   Views: 343
How can i fill certain columns of a 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 phosira  · 13-06-2023 - 00:29

i have a document with a table and i want to fill the second columns with my text.

which method can help me?

Posted by admin  · 13-06-2023 - 05:14

Hello,

All DOCXPath methods (https://www.phpdocx.com/documentation/introduction/docxpath) allow choosing specific positions in a DOCX without using phpdocx template placeholders.

You can use insertWordFragment (https://www.phpdocx.com/api-documentation/docx-path/insert-elements-in-docx) to insert WordFragments in specific positions such as cells in a table.

We recommend you check the samples included in the package. For example, DocxPath/insertWordFragment/sample_8.php illustrates how to insert a content in cells.

Regards.