View header and Footer sometimes

Stimulsoft Reports.NET discussion
so29
Posts: 72
Joined: Mon Nov 02, 2009 1:29 pm

View header and Footer sometimes

Post by so29 »

hi
You can use following code in BeforePrintEvent of databand:

Code:
DataBand1.Enabled = DataBand1.CountData >= 2;


Thank you.
This is the code what to do?


Thank you.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

View header and Footer sometimes

Post by Edward »

Hi

Could you please explain once more your task. I checked your report and unfortunately lost the idea what you need to implement, sorry.

Thank you.
so29
Posts: 72
Joined: Mon Nov 02, 2009 1:29 pm

View header and Footer sometimes

Post by so29 »

Hi Edward

I asked repeatedly said in previous posts has

And also
Code:
this.DataBand1.DataSourceName = "data";
this.DataBand2.DataSourceName = "data";


DataBand2 information is filtered
Code:
public void DataBand2__GetFilter(object sender, Stimulsoft.Report.Events.StiFilterEventArgs e)
{
e.Value = (this.ToString(this.data.name).ToLower().IndexOf(this.ToString("so29").ToLower()) != -1);
}
and
I just would like to apply condition (DataBand2.CountData > 0)

Your post Attachment thirteenth taking conditional
Code:
Totals.Sum(Categories,Categories.CategoryID<3?1:0) == 2



but I have only two string fields in Databand2
fields that only the character and not sign or number, etc.
Please post your thirteenth such conditions put on the string fields to act
Please see Attachment
Thank you.

Attachments
334.07.mrt
(35.86 KiB) Downloaded 151 times
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

View header and Footer sometimes

Post by Edward »

Hi

Please set DataBand1.PrintIfDetailEmpty = true if there is must be master-setail relationship between DataBand2 and DataBand1.

Also please see conditions of two red textboxes.

Thank you.
Attachments
335.08.mrt
(43.8 KiB) Downloaded 140 times
so29
Posts: 72
Joined: Mon Nov 02, 2009 1:29 pm

View header and Footer sometimes

Post by so29 »

hi
Thank you.
Attachments
337.Untitled.jpg
337.Untitled.jpg (35.99 KiB) Viewed 1458 times
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

View header and Footer sometimes

Post by Jan »

Hello,

Sorry your report (07.xml) have incorrect structure. HeaderBand2 is header of DataBand2. Visibility of this header band can't depend from details of DataBand2, because DataBand2 can have more then one row.

Thank you.
so29
Posts: 72
Joined: Mon Nov 02, 2009 1:29 pm

View header and Footer sometimes

Post by so29 »

hi
Please help me
:dumb:
Thank you.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

View header and Footer sometimes

Post by Jan »

Hello,

Please clarify your task. May be you can show screenshots or images or doc files which shows which report you need create.

Thank you.
Post Reply