Problem with using translations in stimulsoft reports.

Stimulsoft Reports.WPF discussion
Post Reply
kobe
Posts: 1
Joined: Mon Mar 10, 2025 7:11 am

Problem with using translations in stimulsoft reports.

Post by kobe »

i have a problem with using translations in stimulsoft reports.
There is a textfield that shows a different value depending on the condition. Could someone tell me how to setup a translation key for each possible value in the textfield? normally i add the key to the globalised name property but since there are more options for a single textfield this doesn't work. This is the condition i use: {AddressType == "billing" ? "Factuuradres" : AddressType == "post" ? "Postadres" : "Bezoekadres"}
Lech Kulikowski
Posts: 7122
Joined: Tue Mar 20, 2018 5:34 am

Re: Problem with using translations in stimulsoft reports.

Post by Lech Kulikowski »

Hello,

You can use the Switch() function:
{Switch(AddressType == "billing", "Factuuradres", AddressType == "post", "Postadres", ...)}

Thank you.
Post Reply