facebooktwittermenuarrow-up

GemBox Support Forum

Formulas don't work inside IF fields

I am using the latest version of GemBox and trying to create an { IF} field that contains a formula.

I have found that the IF statement is evaluated before the formula. Is there a way I can get the formula to trigger before the IF?

For example if I run the following field in GemBox’s Mail Merge I get “false”. If I update the same field using Update Field in Word without GemBox, I get “false50” like I would expect.
{ IF { "abc" = "def" "true" "false{ = 100 / 2 }" }

Another example: In GemBox this results in “true”, in Word without GemBox it results in “false”.
{ IF { "{ = 100 / 2 }" = "50" "true" "false" }

Thanks
Kris

Hi Kris,

I just wanted to let you know that we’re currently working on this issue.
I’ll contact you again as soon as possible.

Regards,
Mario

Hi Kris,

Please try again with this bugfix:
https://www.gemboxsoftware.com/document/nightlybuilds/GBD33v1460.zip

Or this NuGet package:
Install-Package GemBox.Document -Version 33.0.1460-hotfix

Does this solve your issue?

Regards,
Mario