Remove a table column in your XpressDox template if a certain condition is true.
It is almost impossible to think of a way to tell XpressDox to include a column in a Word table using
«End()» to delimit the column boundaries.
Now it is a straightforward process of putting the command
into any cell in the affected column, and the column will be removed if the “condition” evaluates as true.
The above will remove the column and shift all the columns to the right of it over to the left, shrinking the table.
Often you would not want to shrink the table, but allocate the width of the removed column to another column. This is done like this:
«RemoveColumnIf(Remove = 'Y',3)»
This will increase the width of the third column in the table (counting from the leftmost column as number 1) by the width of the removed column. The number of the column specified is the number before the removed column is removed.
The command below will not actually remove a column but will empty it, leaving the table effectively the same as it was but with that column blanked out.
«RemoveColumnIf(Remove = 'Y',Empty)»