Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

No heading if one page only.

edited July 2001 in General
(Repost w/add'l info)
Using RB 5.56 / Delphi 5.

Page 1 headings do not print if the entire report
fits onto one page.

My report consists of a heading (first page only)
and detail (containing one large memo field).

I print for the current record only.

If the memo spills over to the second page,
everything prints correctly. Heading prints
on first page, not on second - as designed.

However, if the memo field fits onto one page,
it does not print the headings, only the memo
field.

What things should I check for?

Thank you.

Comments

  • edited July 2001
    The PrintOnLastPage overrides the PrintOnFirstPage boolean property of the
    header band. What you can do is set the header band to PrintOnLastPage back
    to true. Then, after the header band prints (HeaderBand.AfterPrint event),
    set its visibility to false. This should work around your one page report
    header problem.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited July 2001
    Thank you, this works if the report is previewed only, or printed
    only.
    However . . .

    If it is previewed and then printed (from the preview screen) the
    headings do not print at all.

    If paging forward, and then paging backwards on preview, it redisplays
    the first page without headings.
    For this application it is desirable to display, and then selectively
    print page 1 or page 2, which this does not allow to be done.

    Is there a setting that will direct the printing and preview paging to
    be done from the first pass? (i.e. not regenerate on page
    forward/backward or print from preview)? Or is there something else
    that might work better?
    Thank you for your assistance.



  • edited July 2001
    There is the Report.CachePages property which will keep the pages from being
    regenerated when the report is sent to the printer from the preview.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited July 2001
    Thank you!! Works perfect now.

This discussion has been closed.