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

need suggestion and explanation

3 Answers 169 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Raj
Top achievements
Rank 1
Raj asked on 24 Jul 2007, 08:16 PM
I think thats probably a stupid question but since i haven't done reporting before its all new to me. The question is why does page header appear before the report header. It would make sense to have the report header appear first and then page header. Here is my problem.  Page header is something that repeats on every page which is basically my column headings where as report header i want to add my company logo but for some reason report header appears before the page header. Am i not doing it right? please help ?

Thanks
Zeeshan Hirani

3 Answers, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 25 Jul 2007, 12:42 PM
Hello Raj,

To answer this abstract question, we will have to define what a "report" is. A report consists of report headers, report footers, and a detail section. We can also view a report as the "document content". As in Word, if the document content is centered on the paper/screen, then the page header and footer will be around the content, i.e. at the top or at the bottom.

If we look at this from another angle, the page header and footer are not related to the report itself, rather they are relative to the margins of the report's media, i.e. to the paper or screen. Usually page headers and footers are printed in the paper margins (page numbers, document dates, etc). One cannot have the title of the document (i.e. the report header) on top of the page number, as this will look awkward and incorrect.

These are the reasons why the page header position is outermost. 

Your confusion comes from the fact that you perceive the report as the whole document (incl. page headers, report headers, etc), rather than the content itself. Although there is merit in your thinking, our implementation is standard and is accepted as such amongst all reporting solutions.

Let us know if you have other questions.


Sincerely yours,
Ivan
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Anand
Top achievements
Rank 1
answered on 08 Jul 2008, 11:34 AM

Hi Ivan

To followup on the above post, how can I put a report header which does not repeat in every page. I have the same problem as the original post, in that I need to set the Page title and display a company logo at the top, followed by the headers. I was wondering if I could render the Page title & company logo as the Page header but then I don't want them to be repeated in every page. Is there a workaround for this?

Thanks
Anand

0
Steve
Telerik team
answered on 08 Jul 2008, 02:40 PM
Hello Anand,

As my colleague has explained, the page header is always the outermost section. Here is an excerpt from our Understanding Report Sections help article:
  • Page Header - This section is printed at the top of every page. For example, use the page header to repeat the report title on every page. Since the paging of a report strongly depends on the format it is rendered to, this section and its items are processed by the corresponding rendering extension after the report data has been processed. At this moment the report data source is not available anymore and you cannot add databound items directly to the Page Header section. Due to the same reason you can use the built-in PageNumber and PageCount objects (which contain the current page number and the total report pages count) only in this section. It is possible to suppress the printing of the Page Header section on the first and last page of a report.
  • Report Header - This section is printed just once, at the beginning of the report. Use the report header for information that might normally appear on a cover page, such as a logo, a title, or a date. In the Report Header section all data fields must be aggregated, even if the data source returns only one row. Typically you should use the FIRST() function for character and date data and the SUM() function for numeric data. When you place a databound report item that uses an aggregate function in the report header, it is calculated for the entire report data.

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Raj
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Anand
Top achievements
Rank 1
Steve
Telerik team
Share this question
or