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

DBImage and resizing controls

edited June 2003 in End User
Hi, I know you can resize a graphic to fit the component (using Stretch),
but how would you resize the component to the size of the graphic? The
reason I ask, is that I want to display a graphic right-justified but I
don't know how big the graphic will be. When I right-justify and a small
graphic is used then there is alot of blank space to the right of the
graphic. Vice-versa, a large graphic is cut-off (I want to display the
actual size of the graphic as stored).

Thanks

--
Alex

Comments

  • edited June 2003
    Stretch should resize the DBImage control to fit the graphic image. This
    should be what you need to use. Then shift it's left position so that it is
    right aligned . One way to do this is to load it into a temporary offscreen
    bitmap and check its width and height before the band generates. This way
    you'll kow where to position the DBImage component so it appears right
    aligned.

    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.