Problem in expression

Stimulsoft Reports.NET discussion
Post Reply
Pef
Posts: 10
Joined: Mon Jan 14, 2013 6:51 am

Problem in expression

Post by Pef »

Hi !

In my report, I need to hide some sheets with conditions.

The report is :

In page 1 : DataBand1
In page 2 : DataBand2
In page X : DataBand X

If the Databand is empty (no row), I want to hide the sheet.

I tried this expression on the sheet :

Image

It works but, for example, if Count(DataBand2)=0, the report stop on sheet 2. The next sheets never appears...

I supposed that the problem was calling datas on a hide sheet (I Count Databand on a sheet wich is finally hide). So I made a "previous sheet" with the different DataBand of my report in order to count each databand of my expressions in this new page, which is always printed.

It does'nt work.

For exemple, on sheet 2
- When Count=0, the sheet disappear : Ok.
- When Count !=0, the sheet appear, but totally blanck ! Why ?

Any idea to solve my problem ?


Thanks for your help.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem in expression

Post by HighAley »

Hello.

Which version do you use?

Thank you.
Pef
Posts: 10
Joined: Mon Jan 14, 2013 6:51 am

Re: Problem in expression

Post by Pef »

Hello,

I use stimulsoft integrated in another soft (ProDevis, by ELCIA). I don't how to know the version, there is no "?" button.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem in expression

Post by HighAley »

Hello.

I am sorry if my reply was crude.
However, I would like to clarify our position. According to our support policy the customers of our customers are not our customers.
For example, a company purchases our product to integrate into the application. Then the company sells their application to a customer. The customer finds a problem. He/she sends a bug report to the manufacturer who is our customer. If the issue is related with our product the manufacturer who is our customer sends the report to us. We fix it. Why we follow such rules of tech support? Because we do not know how the customer uses our product in their application.

Thank you.
Pef
Posts: 10
Joined: Mon Jan 14, 2013 6:51 am

Re: Problem in expression

Post by Pef »

Don't worry, your awnser is not a surprise.

However, I don't think my "problem" is a bug, but just a question of use, or coding (is it a correct word in english ?) in my report.

The search continue...

lol
Pef
Posts: 10
Joined: Mon Jan 14, 2013 6:51 am

Re: Problem in expression

Post by Pef »

Anyway, i'll test another possibility.

Is it possible to use the value of a textbox (for example : Text216) in an expression ?

I want to try this.

What is the code for the expression ?

{Text216}==0 ?

Thanks for your help.
Pef
Posts: 10
Joined: Mon Jan 14, 2013 6:51 am

Re: Problem in expression

Post by Pef »

Issue founded !

I modify the endrenderer event :

if (Count(DataBand1)==0)
{
Page1.Enabled=false;
}

It work !

May it could help someone.

Pef.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Problem in expression

Post by Alex K. »

Hello,

Let us know if you need any additional help.
Post Reply