rtf-templater icon indicating copy to clipboard operation
rtf-templater copied to clipboard

Support for Tables in RTF

Open sathish316 opened this issue 12 years ago • 3 comments

Is it possible to generate table in RTF with dynamic rows and cols?

sathish316 avatar Jun 21 '12 12:06 sathish316

Hello

No, unfortunately it can not be done.

The problem is that the table will generate an empty row, in which control structure has been placed.

I think there may be a simple workaround, e.g. the row with control structure can be removed after template processing.

I just didn't faced with such problem, so I can't help with that.

eicca avatar Jun 21 '12 12:06 eicca

I didn't get the empty row part.

If i'm willing to ignore the empty rows and use tables for formatting, Is it possible to dynamically generate a MxN table in RTF like the equivalent of adding M TR tags and N TD tags in html?

sathish316 avatar Jun 21 '12 15:06 sathish316

I played around with the generation of tables. The rows are generated normally, but cols generation does not work. So, you can generate a table only with dynamic number of rows, like:

--------------------------------------
|<% 5.times do %> col1 | col2 | col3 |
--------------------------------------
<% end %>

eicca avatar Jun 21 '12 21:06 eicca