Filter

Stimulsoft Reports.NET discussion
Post Reply
AngelMP
Posts: 1
Joined: Mon Sep 24, 2007 7:12 pm
Location: Los Mochis, Sinaloa, Mexico.

Filter

Post by AngelMP »

Hi.

I know that this question is a little silly :dumb: but i cant get this one working.
Im trying to filter a databand in runtime and the filter expression issomething like this:

StiDataBand band = Reporte.GetComponents()["Data"] as StiDataBand;
band.Filter.Value = "{SUCURSAL.Actual == True}";
Reporte.Compile();
Reporte.Show();


But when trying to compile the report it gave me the error CS0103.
How can u instruct that the "True" is a value and not a component?
Or is something different.
I already make the question in support but recieved no answer. I hope over here u could help faster =)


Thanks
Best Regards
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

Filter

Post by Brendan »

What version of StimulReport are you using?
The StiDataBand.Filter property has been marked as deprecated for some time now.

However if you are using an older version and your Reports are in c# format try setting your filter to the following:

Code: Select all

band.Filter.Value = "SUCURSAL.Actual == true";
Post Reply