Page 1 of 3
View header and Footer sometimes
Posted: Sat Jan 30, 2010 12:00 pm
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
View header and Footer sometimes
Posted: Sun Jan 31, 2010 1:19 am
by so29
hi
Please see Attachment
And help me
Thank you
View header and Footer sometimes
Posted: Mon Feb 01, 2010 7:28 am
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.
View header and Footer sometimes
Posted: Mon Feb 01, 2010 12:29 pm
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
View header and Footer sometimes
Posted: Wed Feb 03, 2010 7:01 am
by so29
Hi
See Attachment
Please help me
:tire:
Thank you
View header and Footer sometimes
Posted: Thu Feb 04, 2010 1:22 am
by so29
Hello
I use 'Conditions' property
But does not answer
I was really hank
:waaaht:
Perhaps this is a bug :brick:
View header and Footer sometimes
Posted: Thu Feb 04, 2010 3:21 am
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.
View header and Footer sometimes
Posted: Thu Feb 04, 2010 11:17 am
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
Thank you
View header and Footer sometimes
Posted: Thu Feb 04, 2010 12:37 pm
by Edward
Hi
Please open attached report in Demo.exe sample application:
See condition in Text7 component.
Thank you.
View header and Footer sometimes
Posted: Thu Feb 04, 2010 1:22 pm
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