Group footer does not respect "print on"

Stimulsoft Reports.NET discussion
Post Reply
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

Group footer does not respect "print on"

Post by Fabio Pagano »

I have a group header with "Print on = First page" and its group footer with "Print on = Last page". On group header i have "Reset Page Number = True".

With these settings, the group header is correctly printed only on first page of the group, but the group footer is not printed on the last page of the group.

Using Version 2008.1.129.0 for Vs2005.

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

Group footer does not respect "print on"

Post by Edward »

The reason of such a behavior is inside of the principles of the Report Engine. GroupFooter could be printed only when GroupHeader is presented for this group. So no GroupHeader means no GroupFooter.

How to deal with these circumstances? One of the possible ways is to use a trick, as always :)

Just set the Height of the GroupHeader to zero, now it can be printed for all groups (and all group footers are possible). Add a Header band with a desired components from the group header which size where reduced to zero.

Please see the report attached. It shows the decision of these issue.



Thank you.
Attachments
33.GroupFooterWithoutGroupHeader.mrt
(18.28 KiB) Downloaded 150 times
User avatar
Fabio Pagano
Posts: 355
Joined: Mon Apr 16, 2007 12:38 pm
Location: Bari (Italy)

Group footer does not respect "print on"

Post by Fabio Pagano »

I wasn't unclear in my exposition, but i've solved.

My situation was:

- Group header (with some fields to print)

- Data band

- Group footer (with some totals).

The "Group header" has "Reset Page number"=True and "New Page" = True (so when some element of the grouping changes, a new page is printed).

In case of data belonging to the same grouped items goes on more than one page, i need to make appear the "Group header" only on the first page (and obviously "Group footer" only on last page).

Example with data on 2 pages:

Page 1:
"Dear Mr. Smith" (Group header)
"data"

Page 2:
"data"
"Totals of Mr. Smith" (Group footer)

The problem was caused by my mistake: on the "Group header" i setted the property "Print on all pages" to True. Setting that property to "False" (that is the default) and setting the "Print on" property to "Print all pages" (that is the default) i've obtained the desired behavior (Group header only on the first page of the group).

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

Group footer does not respect "print on"

Post by Edward »

Thank you for the tip.

Anyway, the issue is resolved and it is the main result achieved!

Thank you.
Post Reply