DBImage located in {programfiles}
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
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
This discussion has been closed.
Comments
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.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com