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

Assiging picture using web URL at runtime to TppImage problem

edited December 2008 in General
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.

Comments

  • edited December 2008
    Hi Chris,

    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

    Best Regards,

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