ISImage.SPicture

Description

This property returns the content of the image control.

Syntax

object.SPicture

Part Attribute Type Description
object Required
The object always implements the ISImage interface
Restriction: This property is readonly.

Return Value

ISPicture

Example

Display some information about the image control, including the RTF presentation of its content.

Dim aImage
Dim aPicture
Dim aImageInfo

Set aImage = Form.Controls_("Image2")
set aPicture = aImage.SPicture
aImageInfo =_
  "Type Name: " & aImage.TypeName & vbNewLine &_ 
  "ShortName: " & aImage.ShortName & vbNewLine &_
  "Picture as RTF text: " & aPicture.GetPictureAsRTFText 
  
Profile.MsgBox(aImageInfo)  
Note: This macro should be executed in any event handler of the form control.

In Profile Client v8 on User Interface SPicture can be found in Maintain > Templates > Health Record Collection Templates > Open the selected form template > Open form editor > Object Inspector > Select the image control in the controls tree > Properties > Picture.

Version information

Added in v7.8.0