Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can include images from an external source in a report. The supported image types are BMP, JPG, WBMP, GIF, and PNG.

$image.include(location)

Include an external image from a local file or URL in a report.

 NameTypeDescription
Parameter(s)locationjava.lang.StringAn image’s location.
The location format
can be either a URL
or a local file.
Return-com.nomagic.magicreport.ImageAn image included
in a report

For example:

Code Block
languagetext
$image.include("

...

C:\Users\username\images\logo.gif")
$image.include("http://www.

...

magicdraw.com/images/product_boxes/MD.gif")

...