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

Problem with memo not stretching in header.

edited October 2003 in General
I have a very simple report in RB 7.03/D6 SP2. It has a ppMemo in the
"header" portion, set to "stretch", to accomodate a variable number of lines
in the document title. Also in the "header" portion are fields below the
ppMemo, as headers for the grid, and then the "detail" line has the row
values. Couldn;t be simpler.

The problem is, the memo isn't stretching, and the last few lines are
overwriting the grid headers. What have done wrong? I tried selecting all
the grid header stuff and setting it to "shift with parent", but it didn't
make any difference.

Barry

--

Dr Barry Clark
Senior Lecturer & IT Systems Designer
Medical Education Unit
Wolfson Medical Building
University of Glasgow
Glasgow G12 8QQ
Tel: 0141-330-4248
Email: b.clark@clinmed.gla.ac.uk

Comments

  • edited October 2003
    Hi Barry,

    Try placing your grid headers inside a TppRegion, then setting the region to
    ShiftWithParent. In my testing this seemed to solve the problem.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2003
    I'll try it, but is that not a bit complicated for what must be a really
    common task? I always have spacing/alignment problems with TppRegion - I'll
    probably end up with a gap at the top of the grid! In CR I'd just add a
    header region and this would happen automatically.

    I'm back to my uncertainties about RB vs CR... CR's regions size, stretch
    and align automatically, and can be set to hide automatically if the
    contents are blank, rather than having to program this. Could this be added
    as feature to RB? At least for me, this would be a killer feature.

    Another problem I have constantly with RB is when dragging to space the grey
    header/detail separator bars (for example). You really need a nudge on them
    as it doesn't seem possible to get the spacing pixel perfect when dragging
    with the mouse. Do they snap to something?

    Barry

  • edited October 2003
    Thanks Nico. It does work - heck of a fiddle though to squeeze the region
    small enough to allow the header grid to touch the detail grid. It is a pity
    you can't insert header regions, like you insert group headers. Is this on
    the cards?

    Barry

    --

    Dr Barry Clark
    Senior Lecturer & IT Systems Designer
    Medical Education Unit
    Wolfson Medical Building
    University of Glasgow
    Glasgow G12 8QQ
    Tel: 0141-330-4248
    Email: b.clark@clinmed.gla.ac.uk
  • edited October 2003
    Hi Barry,

    Thanks for the suggestion. There probably should be a way to insert header
    regions as you described. I will note your suggestion in our wish list for
    a future release.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.