Search
ScriptHelper.LoadImageFromUrl Method
See Also
 



Loads an image from the specified URL.

 Syntax

VB6  Copy Code

Public Function LoadImageFromUrl( _
    ByVal URL As String _
) As IPictureDisp

C++  Copy Code

public:
IPictureDisp* LoadImageFromUrl (
    BSTR URL
)

 Parameters

URL
The URL of the image to open.

 Return Value

An image object.

 Remarks

Images loaded through the HTML <IMG> tag cannot be assigned to the Picture property of FlowChartX boxes or tables. This method lets you load an image from a remote http server and get an OLE Picture object that can be displayed inside FlowChartX nodes.

 Example

The following code loads an image from a server.

VB6  Copy Code

box.Picture = fcx.ScriptHelper.LoadImageFromUrl( _
    "http://science.nasa.gov/headlines/y2004/images/bluemoon/elkbath.jpg")

 See Also