Create formulas

Stimulsoft Reports.NET discussion
Post Reply
whythetorment
Posts: 20
Joined: Fri Nov 20, 2009 7:40 am

Create formulas

Post by whythetorment »

Hi,

I'm converting a crystal report to stimulsoft, and the report has alot of formulas in it that uses IF statements e.g.

Code: Select all

IF {Claim.ClaimType} = 1 Or {Claim.ClaimType} = 12 Or {Claim.ClaimType} = 13 Or {Claim.ClaimType} = 14 Or {Claim.ClaimType} = 15 Then
    IF {Claim.NoPassengers} = 1 THEN
        'No'
    ELSE
        'Yes'
   
ELSE
    ''
How can I convert this to be used in stimulsoft ? It is vb and not C..

Thankx
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Create formulas

Post by Edward »

Hi

Please use the following expression in the Text property of the StiText component:

Code: Select all

{IIF({Claim.ClaimType} = 1 Or {Claim.ClaimType} = 12 Or {Claim.ClaimType} = 13 Or {Claim.ClaimType} = 14 Or {Claim.ClaimType} = 15,IIF({Claim.NoPassengers} = 1,"No","Yes"),"")}
Also please see the following flashing tutorial:
http://www.stimulsoft.com/livedemos/Rep ... ields.html

Thank you.
Post Reply