facebooktwittermenuarrow-up

GemBox Support Forum

Any time frame on IF field improvements?

Hi there,
In an earlier support issue I was told this:
“IF fields are supported, but it can contain only inline-level elements, not block-level elements. Also, the resulting text will always be formatted based on the IF field’s formatting.
Note that in the future we plan to address these limitations and provide better support for IF fields updating.”

The formatting is a problem for me.
I have IF fields that contains a number of lines, of which the first is meant to be bold.
{IF MERGEFIELD Field1 <> “” "
{ MERGEFIELD FirstField }
Second field: { MERGEFIELD SecondField }
Third field: { MERGEFIELD ThirdField }
" “”}

The native Word mail merge retains the formatting of each line so I end up with
FIELD 1 CONTENTS
Second Field: FIELD 2 CONTENTS
Third Field: FIELD 3 CONTENTS
(etc)
which produces a nicely laid-out report with a bold first row.
If I let GemBox do the merge I lose the formatting.

I’d like to ask what the likely time frame of “in the future” is. If it’s a couple of month you’ve got a beta tester! If it’s more than that I might need to reconsider my options.

Also, am I right in thinking that it is not possible to nest two levels of IFs?
I.e. this:
{IF MERGEFIELD Field1 <> “” “{IF MERGEFIELD Field2 <> “” "
First field: { MERGEFIELD FirstField }
Second field: { MERGEFIELD SecondField }
Third field: { MERGEFIELD ThirdField }
" “”}” “”}

The second IF is a merge field and that’s an inline element so technically it should be allowed. But it doesn’t seem to work.

Hi Karin,

I’m afraid that this feature is not in our current roadmap so it won’t be available this year.
For later I cannot say at this moment.

Regarding the nested IF fields, those are supported.
Can you send us your Word file or a small sample project that reproduces your issue so that we can investigate it?

Regards,
Mario