Assiging picture using web URL at runtime to TppImage problem
Hello
I am looking at whether we could use a web image at run time, so that if
that web image changed, but the filename was the same, any reports run
afterwards would show the new logo.
I can give the image a web URL at design time which embeds the image into
the rtm file, however when trying to do
Image1.Picture.LoadFromFile('http://www.bf2rcon.co.uk/pics/WTCC/pic5.JPG');
I get an unabled to find file error from windows temperory internet files
thing? and then the web url is appended on the end. However if i put the web
url into a browser the image is fine. Similarly using this web url at design
time works fine.
Any ideas on this?
Thanks.
I am looking at whether we could use a web image at run time, so that if
that web image changed, but the filename was the same, any reports run
afterwards would show the new logo.
I can give the image a web URL at design time which embeds the image into
the rtm file, however when trying to do
Image1.Picture.LoadFromFile('http://www.bf2rcon.co.uk/pics/WTCC/pic5.JPG');
I get an unabled to find file error from windows temperory internet files
thing? and then the web url is appended on the end. However if i put the web
url into a browser the image is fine. Similarly using this web url at design
time works fine.
Any ideas on this?
Thanks.
This discussion has been closed.
Comments
How are you giving the image component a web address at design time? This
component is simply using the Delphi class TPicture to load images. I do
not believe it contains logic to recognize a web address and retrieve a file
from the Internet.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com