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

define object position in detail band

edited October 2001 in General
Hi,

I have some reports with a detailband like this:

----------------------------------------------
| Headline |
----------------------------------------------
----------- ---------------------- --------
| Amount | | Description | | Value |
----------- ----------------------- ---------
----------------------
| Further Description |
-----------------------
The 'headline' is optional. When it is not printed all following objects
have to be shifted to headline.top.
If the 'description' is not printed, the 'further description' has ton be
shifted to descrition.top.

One solution is to use memos and set ShiftRelativeTo, but I need to enclose
the whole detailband in a Region (see thread 'detail band - summary each
page' ), but within the Region the ShiftRelativeProperty is not accessible.
The only other possibility I see, is to code the position of the objects in
RAP, one by one.
For example:
If headline.Text <> ''
then Amount.Top := Headline.Top + Headline.Height
But if I use this opportunity, I will lose most of the reportbuilder
advantages.

Is there a better solution?

BTW, if you configure some memos with ShiftRelativeTo, cut and past them
back in a Region they maintain the requested behaviour, but it is not
posible to change the settings.
Why isn't it possible to change the ShiftRelativeTo settings within a
Region?

puzzled


Carsten Wefel

Comments

  • edited October 2001

    Sorry, but you are encountering the limitations of the Region component.

    Another alternative would be to use a Subreport to layout the objects
    rather than putting them inside a Region. You can create a subreport
    that is not connected to any datapipeline and by default it will print
    one detail band and stop. The data-aware controls can each be connected
    to a datapipeline - even though the subreport is not.





    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.