Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Quickreport Page Header only first page

Posted on 2011-03-03
4
1,568 Views
Last Modified: 2013-11-22
Hi,

with the QuickReport I want to print the rbPageHeader BandType only in the first page. There is the Option FirstPageHeader but:
- FirstPageHeader:=True -> every page have the Header
- FirstPageHeader:=False -> every page have the Header but not the first page!

I want the header only in the first page.

I use QuickReport 4.05 and Delphi 7.

Thanks in advice.
0
Comment
Question by:Seldon_
  • 2
4 Comments
 
LVL 19

Accepted Solution

by:
Thommy earned 125 total points
ID: 35031600
Use title band to print a header only on the first page...

Following text part is from http://www.oocities.org/ikhet0/resources/QuickReport3.doc:

A title band is the first band printed to a report (after the very first page header, if any).
It’s useful for printing the report title, data selection criteria, creation date and time and so on.
0
 
LVL 19

Expert Comment

by:Thommy
ID: 35031652
For a title band in Delphi you have to use TQRBand / rbTitle
0
 
LVL 6

Expert Comment

by:bokist
ID: 35031900
One of possible solutions - using page header OnBeforePrint event :

procedure TMyForm.PageHeader_band_nameBeforePrint(Sender: TQRCustomBand; var PrintBand: Boolean);
begin
   PrintBand := Quickrep1.PageNumber = 1;
end;
0
 

Author Closing Comment

by:Seldon_
ID: 35031957
Thanks!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question