Search code examples
phpms-wordopentbs

opentbs merge 2 rows in Word document table simultaneously


Here is an example of what I'm trying to achieve: enter image description here

Here is what my template looks like: enter image description here

And here is my end result: enter image description here

I believe it is because I have defined block as w:tr, which refers to a single row only. Is there a way to tell opentbs that the block consists of 2 rows? Thanks.


Solution

  • It is possible to define a block on several rows. Please note that it is different from a header block upon several detail rows.

    A block on tow rows:

    [al.companyName;block=w:tr+w:tr]
    Further detail: [al.detail]
    

    or better:

    [al.companyName;block=tbs:row+tbs:row]
    Further detail: [al.detail]