How do you explain that? (IIF function doesn't work)

Stimulsoft Reports.NET discussion
Post Reply
Paulo Lemos
Posts: 19
Joined: Tue Jan 06, 2015 7:39 pm

How do you explain that? (IIF function doesn't work)

Post by Paulo Lemos »

Hello, I'm new here, so sorry if I created this topic in the wrong session or something.

I have 2 problems as it follows:

1)
This works fine:
{IsLastPage == false ?"false" : "true"}

This doesn't work, and always print the word "false":
{IIF((IsLastPage == false), "false","true")}
this neither...
{IIF((IsLastPage), "true","false")}

Why?

2) I am trying some form of concatenating conditions without using the "Condition" option in "Properties". Is it possible to write something like this:

{IIF((IsLastPage == true && Data.TotalsNeedToBePrinted == true), "Totals are printed here", "Totals are in the LAST PAGE")}

Thanks in advance,
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: How do you explain that? (IIF function doesn't work)

Post by Alex K. »

Hello,

Sorry for the delay with responce.
We need some time for check the issue.

Thank you.
Paulo Lemos
Posts: 19
Joined: Tue Jan 06, 2015 7:39 pm

Re: How do you explain that? (IIF function doesn't work)

Post by Paulo Lemos »

Waiting. Thank you.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Re: How do you explain that? (IIF function doesn't work)

Post by Ivan »

Hello,

From our documentation, article "System Variables":
"IsLastPage - Returns true, if, in the current moment, the last page of a report is printed. For correct calculation of a variable it is required to execute two passes."

In some cases this variable can work correctly in SinglePass mode, but we guarantee correct behaviour only in case of DoublePass mode.

So please set the NumberOfPass property of the report to the DoublePass.

Thank you.
Post Reply