This is a migrated thread and some comments may be shown as answers.

Suppress Page Header for New Group

4 Answers 320 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 18 Nov 2008, 08:12 PM
With Q2 2008, I have a report which displays a series of invoices. claims, whatever.  Each new invoice begins a new group on a new page.  An individual invoice can go on for several pages.  After the header info, columns of figures are printed out.  These usually a start about 2/3 of the way down the page, so the column headers are printed at the bottom of the group header.

For the subsequent pages, though, I also need column headers, and am trying to use the page header for this.  The problem is that it prints at the top of every page, even where there is a new group.

How can I suppress the page header when the group is a new one?

Thanks
Mike Thomas

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 19 Nov 2008, 03:41 PM
Hi Mike,

You do not need to use Page Headers for this - simply set PrintOnEveryPage for the GroupHeader and PageBreak=Before for the GroupHeader or PageBreak="After" for the GroupFooter.

Kind regards,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mike
Top achievements
Rank 1
answered on 19 Nov 2008, 05:00 PM
Thanks Steve,

I don't think that printing the group header at the top of each page would be correct.  The group header itself takes about 3/4 of the page.

Let's say the user opt to  print all unissued invoices, and it's 10 invoices.

I have put the invoice header info (invoice #, date, customer, along with a lot of other info) in the group header - it's about 2/3 of a page. The  detail (part number, qty, etc) might contain 100 or so lines,  up to say 5 or 6 pages.  So that's 10 invoices times 6 pages, all in one report, one window, one rendering, etc.

I do not want the invoice header info in the report header, because then I would have to call and render the report 10 times, opening 10 windows, I suppose.

I need to use a page header, or some substitute, to label the columns in the detail section of the report on the pages following the each new  grouping expression (on the pages with a new group expression, I just put the labels at the bottom of the group header.)

In other words, if group expression is new, print page header is false, otherwise it's true. Could this be done with conditional formatting? Or is there a completely different way of doing this?


Thanks
Mike Thomas

0
Hrisi
Telerik team
answered on 24 Nov 2008, 03:48 PM
Hi Mike,

As you already know, page Header/Footer sections do not relate to data rendered in the report. To create table like header for the details, you can create additional group without group criteria (unbound group). That is in fact what my colleague meant, but did not explain well. In header section of this group you can place table header cells. The report definition outline will look similar to this:

groupOrderHeaderSection (PageBreak=Before)
  groupDetailsHeaderSection (PrintOnEveryPage=true)
    Details
  groupDetailsFooterSection (Visible=false)
groupOrderFooterSection

We've attached an example (data is retrieved from AdventureWorks) to demonstrate the idea.

Regards,
Hrisi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Mike
Top achievements
Rank 1
answered on 27 Nov 2008, 01:47 AM
Thanks very much Hrisi.  I will give this a try on Friday.  I have submitted a help desk ticket on slow rendering which I need to get sorted out, then I can return to this issue.

Mike Thomas
Tags
General Discussions
Asked by
Mike
Top achievements
Rank 1
Answers by
Steve
Telerik team
Mike
Top achievements
Rank 1
Hrisi
Telerik team
Share this question
or