z--
z--

Reputation: 2236

Is it possible to display an in-line image?

Article http://runrev.com/newsletter/june/issue135/newsletter4.php shows how to display a table in a text field. Is it as well possible to display in-line images?

Upvotes: 0

Views: 196

Answers (2)

Mark
Mark

Reputation: 2435

If the image is in your stack, you can use

put "%" into fld 1
set the imageSource of char 1 of fld 1 to 1014

Where % is an arbitrary character and 1014 is the image id of an arbitrary image. You can set the imageSource of any character in a field.

Upvotes: 0

mwieder
mwieder

Reputation: 231

You'll have to mess with the htmltext of the field in order to insert the online images, but it can be done. Put the htmltext of the field into a variable, then insert a line of html, as in

put "<img src=" & quote & "http://www.site.com/image.png" & quote & ">" after line x of tHtmlText

and then set the htmltext of the field back to tHtmlText

Upvotes: 1

Related Questions