Page 1 of 1
Header band printing position
Posted: Thu Aug 30, 2007 6:44 pm
by Fabio Pagano
Using 23 august build for Vs2005.
I have designed a report with the following bands:
GroupHeader1
GroupHeader2
Header
Data
Footer
In Preview (of the design) the "Header" is always printed at top of page, before the groupheaders. How can i print GroupHeader1 then GroupHeader2 then Header and then Data?
Thanks.
Header band printing position
Posted: Fri Aug 31, 2007 4:46 am
by Edward
In that case you should do the trick.
Replace Header with GroupHeader3. Condition of the group header please leave empty.
In the BeforePrint event of the DataBand Data type the following:
Thank you.
Header band printing position
Posted: Fri Aug 31, 2007 5:52 am
by Fabio Pagano
Sorry if question is silly (i'm new to StimulReport), but if "Header" is always printed at top of page, what's the difference between "PageHeaderband" and "HeaderBand"?
In the help i read:
PageHeaderBand: Printed on the top of every page
HeaderBand: Printed before data
This sounds clear, so i expected to see the header band to be printed just before data band, not before GroupHeaderBands too.
Thanks.
Header band printing position
Posted: Fri Aug 31, 2007 6:29 am
by EDV Gradl
The order is this (from top to bottom):
ReportHeader (once for a report)
PageHeader
Header
Group Header
Data
Group Footer
Footer
Pager Footer
Report Footer
All band print "around" the databand. The Group band are data bands as well, but serve to group the data somehonw (e.g. invoice number etc.
Normally header are alway printed before the group headers. It makes no sense to print the header after the groups. Maybe if you could tell us what data you want tot print, to problem would be clearer.
Marco
Header band printing position
Posted: Fri Aug 31, 2007 6:56 am
by Fabio Pagano
This is only a pseudo-example, my report is more complex.
Grouping for customer code, i want to print (after customer data) all his movements with an header "Movement date Amount"
Customer 1 - Mr. Smith
Movement date Amount
01/01/07 5.000
02/01/07 3.000
03/01/07 4.000
Customer 2 - Mr. Ross
Movement date Amount
01/01/07 1.000
02/01/07 6.000
03/01/07 2.000
I created the Header "Movement date Amount" but it was printed before the Customer group.
Actually i solved deleting the header and designing, in the last line of the groupheader, the "Movement date Amount" string.
So my group has been designed this way:
---
Customer {MyCustomerCode} - {MyCustomerName}
Movement date Amount
---
and it seems that i have obtained what i wanted.
Thanks.