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

aligning DBText controls at runtime

edited June 2004 in General
Hi all,

I have two DBText controls in my DetailBand, DBText1 and DBText2 at the
right from DBText1. Both controls have different font settings and colors.
Therefore I
cannot bind the data in a variable control. In dependence of the with of the
first
control I would like to place the right control - say for 3 millimeters.
When data changes the controls should be realigned to
save the horizontal distance between controls.

How can I do this in ReportBuilder (RAP)?

Thank you

Michael Schwarzl

Comments

  • edited June 2004
    Hi Michael,

    Unfortunately there is no horizontal shifting of components in
    ReportBuilder. You might try creating a RAP pass thru function that returns
    the text width of a string based on the text and font you send it. Then
    using this width, and the original position of the first DBText component,
    you can allign the second DBText accordingly.

    --
    Best Regards,

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