image value = network path
Hello all,
Simply put, I would like to assign an image to a database report based on
the image's location on the drive as opposed to using an image stored
within the data source of the report.
It seems like a simple task but I'm going crazy trying to find the correct
syntax.
Here's what I tried:
Image2.Picture.assign('E:\pics\Fam\IMG00244.jpg');
...sooo, can this be done and if so, how?
Finally, I'll mention that the version of RB I'm stuck with is OLD! If
upgrading is absolutely essential, I can start the bureaucratic process of
requesting an upgrade but as many of you surely know, just because it's
the right thing to do doesn't mean management will go for it
Thanks in advance!
-Eric
--- posted by geoForum on http://delphi.newswhat.com
Simply put, I would like to assign an image to a database report based on
the image's location on the drive as opposed to using an image stored
within the data source of the report.
It seems like a simple task but I'm going crazy trying to find the correct
syntax.
Here's what I tried:
Image2.Picture.assign('E:\pics\Fam\IMG00244.jpg');
...sooo, can this be done and if so, how?
Finally, I'll mention that the version of RB I'm stuck with is OLD! If
upgrading is absolutely essential, I can start the bureaucratic process of
requesting an upgrade but as many of you surely know, just because it's
the right thing to do doesn't mean management will go for it
Thanks in advance!
-Eric
--- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.
Comments
If you are certain of the location of the image, you should be able to use
the Picture.LoadFromFile method.
ppImage1.Picture.LoadFromFile('E:\pics\Fam\IMG00244.jpg');
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
It worked like a charm!
Thanks very much!
-Eric
--- posted by geoForum on http://delphi.newswhat.com