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 »

Hello

I create my report using
Header, Footer and data band
I would like to display some of them always
And some appear to be sometimes

In Attachment everything is explained

Please see Attachment

Attachments
320.04.mrt
(50.35 KiB) Downloaded 229 times
so29
Posts: 72
Joined: Mon Nov 02, 2009 1:29 pm

View header and Footer sometimes

Post by so29 »

hi

Please see Attachment
And help me

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

View header and Footer sometimes

Post by Edward »

Hi

Each Header band requires the DataBand, so set Page1.LargeHeight = true and add another DataBand for HeaderBand3.

HeaderBand.PrintIfEmpty and HeaderBand.PrintOnAllPages the properties you need to set in true.

Assign also datasources to databands, or set CountData property.

'show if(DataBand2.CountData >= 0)' - use 'Conditions' property

'show only on first page' - HeaderBand.PrintOnAllPages=false

'Show when data exist' - please see the following thread:

http://forum.stimulsoft.com/Default.aspx?g=posts&t=2741

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

View header and Footer sometimes

Post by so29 »

Hi Edward
As always thank you

Problems solved with your help,


But why not run the EndRenderEvent?
Not on the page and not report

I do with container1 removed
and
'show if(DataBand2.CountData >= 0)' - use 'Conditions' property
Please explain more about
And apply it in the Attachment to

I attach revised report
Please see the
Attachments
321.05.mrt
(37.41 KiB) Downloaded 355 times
so29
Posts: 72
Joined: Mon Nov 02, 2009 1:29 pm

View header and Footer sometimes

Post by so29 »

Hi

See Attachment
Please help me
:tire:
Thank you
so29
Posts: 72
Joined: Mon Nov 02, 2009 1:29 pm

View header and Footer sometimes

Post by so29 »

Hello

I use 'Conditions' property
But does not answer
I was really hank
:waaaht:
Perhaps this is a bug :brick:
Attachments
322.Untitled.jpg
322.Untitled.jpg (48.06 KiB) Viewed 2988 times
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

View header and Footer sometimes

Post by Edward »

Hi

Yes, you right, you must disable that HeaderBand2 or Container1 in the EndRender event of the report, because it is a Header for the DataBand1, not the header for the DataBand2.

if the condition would be (DataBand1.CountData > x), then you could use it in the HeaderBand1.

Also please see the following report in the Demo.exe: 'All Group Footers at End' in the 'Reports with Groups' group of reports. This report shows the idea how bands with zero height could be used too in similar tasks.

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

View header and Footer sometimes

Post by so29 »

Hi Edward

Question, I give another kind
A New Question
I would like to add something after (below) HeaderBand2
No matter what is
If only I had the correct (DataBand2.CountData > 0)
To display and otherwise no
In addition,
There is only one data source
That

Code: Select all

 this.DataBand1.DataSourceName = "data";
 this.DataBand2.DataSourceName = "data";
DataBand2 information is filtered

Code: Select all

   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);
        }

I hope is obvious Description
Please help me
:cry:
Thank you
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

View header and Footer sometimes

Post by Edward »

Hi

Please open attached report in Demo.exe sample application:

See condition in Text7 component.

Thank you.
Attachments
324.Report.mrt
(19.47 KiB) Downloaded 255 times
so29
Posts: 72
Joined: Mon Nov 02, 2009 1:29 pm

View header and Footer sometimes

Post by so29 »

Thanks Edward
open attached report in Demo.exe sample application:
Is perhaps strange, but how?:dumb:

I tried to open it in the demo
Following path
start/all programs/stimul..../net2/demo.exe
After I opened the demo
Was only performed with the file extension *.mdc and *.mdz
But could not

And tried to run it
But I was faced with the error

Thanks for your kind of accountability
Attachments
325.Untitled2.jpg
325.Untitled2.jpg (51.29 KiB) Viewed 2970 times
Post Reply