문제

I am using TBS to create an MS Word Document from a template in PHP and trying to remove a table depending on a boolean variable.

What I'm trying to do is similar to the following code, but I want to remove a table rather than an object...

[onload;block=mc:AlternateContent;when [var.x_delete]=0]
도움이 되었습니까?

해결책

I guess you are using TBS with its plugin OpenTBS.

In MS Word, a table is bounded with the element <w:tbl>.

Thus the TBS tag for deleting such a table would be:

[onload;block=w:tbl;when [var.x_delete]=0]

OpenTBS is provided with a synopsis of the main elements of MS Office and LibreOffice.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top