Solved

Quickreport Page Header only first page

Posted on 2011-03-03
4
1,483 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
Comment Utility
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
Comment Utility
For a title band in Delphi you have to use TQRBand / rbTitle
0
 
LVL 6

Expert Comment

by:bokist
Comment Utility
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_
Comment Utility
Thanks!
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now