Home > Examples, Features, Implementation, Web > Include Web Image in Report

Include Web Image in Report

May 15, 2012

Here is a real cool feature of Sunset Reports.   You can easily include an image from a webpage into your report.   Whenever the report is run, the image is grabbed from the web and included in the report.   It is current and up to date.   What kind of images can be included?   There is essentially no limit.   Include stock charts, weather radar, traffic, or whatever is available.

The secret to getting this to work is to add a Picture Box to your report.  Then add the URL of the web image in the property “ImageURL”.  This property supports both absolute and relative paths.  An absolute URL provides the complete path and is what you will use to get a web image.   Note:  You will also want to adjust the “Sizing” property.   “Stretch Image” will probably work best.

Here are some URL’s to try…

http://images.intellicast.com/WxImages/Radar/usa.gif

http://chart.finance.yahoo.com/t?s=%5eDJI&lang=en-US&region=US&width=300&height=180

http://www.google.com/finance/chart?cht=c&q=INDEXDJX:.DJI,INDEXSP:.INX,INDEXNASDAQ:.IXIC&tlf=12h

A sample report is also available for you to download HERE.

Advertisements