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

DBImage located in {programfiles}

edited April 2012 in General
Hi,
i have a problem with DBImage.
I have a field in a table that contain the following path :
{programfiles}\Basics\MediaFiles\LogoBarca.bmp
In Report Builder i have a DBImage component hooked at this field.
It doesn't print the image.
If i change the first part of pathname {programfiles} with a absolute
path C:\ProgramFiles\Basics\MediaFiles\LogoBarca.bmp it works well.

Any suggestions ?

Thanks at all

Comments

  • edited April 2012
    Hi Mauro,

    ReportBuilder is not going to know what "{programfiles}" represents and
    will try to access that as a file location directly.

    Try using the DBText.OnGetPicture event to get the file location and
    load it into the aPicture parameter manually. See the help topic for
    this event for more information.

    Another option is to use a TppImage component and load the image
    manually before it prints.

    Best Regards,

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