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

AutoSize with DBImage

edited November 2003 in General
I have a DBImage in the SectionStyle with AutoSize=true.
It's a custom-logo.

I use RB 7.03 and the DBImage-AutoSize-property does nothing. The image is
cutted.

Is it me or is it a bug?

Comments

  • edited November 2003
    > I have a DBImage in the SectionStyle with AutoSize=true.

    From the help:

    <<
    For an Image component, when the AutoSize property is True, the height and
    width of the image component are determined by the size of the image
    specified in the Picture property.

    So it resizes the component to suit the image. I actually wanted it to do
    the opposite: to size the image so that it fits in the space for the image
    component, like 'proportional' does for a Delphi TImage:

    <<
    Set Proportional to True to ensure that the image can be fully displayed in
    the image control without any distortion such as occurs with the Stretch
    property. When Proportional is True, images that are too large to fit in the
    image control are scaled down (while maintaining the same aspect ratio)
    until they fit in the image control. Images that are too small are displayed
    normally. That is, Proportional can reduce the magnification of the image,
    but does not increase it.

    It turns out I had to use the RB image 'stretch' property, which is
    different for images than for other components - 'stretch' actually shrinks
    it to fit in the image.

    HTH

    Lauchlan M
  • edited November 2003

    As we discussed via support@digital-metaphors.com , there is currently no
    support for DBImage.AutoSize.

    From the ReportDesigner the context menu for the DBImage does not include a
    menu item for setting the AutoSize property.

    The AutoSize property is erroneously published for the DBImage component -
    that is creating the confusion.

    We'll add this to the "wish list" for future features.


    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

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