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

Detailband max print position

edited March 2003 in General
To simplify it, let say i have a 12" papersize, a header band of 4", a
summary band of 4 ".
The detailband must not print in the reserved area of the summary band but
leave the
symmary band free, if the report needs more than one page.

How can i achieve this ?

Thanks, Albert

Comments

  • edited March 2003
    Use the BottomOffset property of the detail band to force it to not print
    into a reserved area of the bottom of the page.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited March 2003
    Please don't cross post. Thanx

    --
    Ed Dressel
    Team DM
  • edited March 2003
    If I use bottomoffset in a detailband, I get an empty space after each
    detailband with a height of then bottom offset.

    But I dont want a space aera after each detailband, I only want that the
    detailband does not print into the last four inches of my paper.

    The first page looks like this: The last page looks like this
    ----------- -----------------
    groupheader- groupheader-
    band band
    --------------- ------------------
    Rec.-1 of detailband Rec n+1 of detailband
    .... ......
    Rec. n of detailband Last rec. of Detailband
    ------------------- -----------------------
    last 4 inches Summary prints
    not used here
    --------------------- ------------------------

    Thanks fopr any help. Albert


  • edited March 2003
    I also tried to put the summary infos of the report into a footerband with
    setting printonfirstpage:=false and printonlastpage:=true. The footerband
    doesn't print on the first page correctly but prints on both the 2nd and 3rd
    page.

    Could I set the footerband.visible property by code in the detailband and
    who can I regognise the last detailband ?

    Cheers, Albert Kessler


  • edited March 2003
    Ok, I see what you want now. Yes, use an empty 4 inch tall footer band, but
    on the last page, tell it to not print. There is a
    Footerband.PrintOnLastPage boolean property you can set to false to
    accomplish this. There is a thread, started on 3.7.2003 which is called
    PrintOnFirstPage which covers the problem where you want to determine if the
    report is a one page report..


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited March 2003
    Thank you, but I found a solution like this:

    - I put the summry info into a footerband, but into a region component
    - I set printonfirstpage and printonlastpage to true
    - in the footerbandbeforePrint event i set the following code:
    ppFooterRegion.visible:=Table1.eof; // only visible on last page

    This solution works fine and I realized the power of the region component.

    Cheers, Albert



  • edited March 2003
    Yes, that works too. The region is a good way to toggle component visibility
    in a band. Another good use of regions is to stack one region on top of
    another to toggle between printing two different sets of components in the
    same band alternatively by only having one region visible at a time.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.