Here's some example code taken from A97 HELP...
Sub Command1_Click
OLE1.Class = "Excel.Sheet" ' Set class name.
OLE1.OLETypeAllowed = acOLELinked ' Specify type of
object.
OLE1.SourceDoc = "C:\Excel\Oletext.xls" ' Specify source file.
OLE1.SourceItem = "R1C1:R5C5" ' Specify data to create link
to.
OLE1.Action = acOLECreateLink ' Create linked object.
OLE1.SizeMode = acOLESizeZoom ' Adjust control size.
End Sub
I'd like to view images created in MS Paint. Some are JPEG's and
others are BMP's. I have a table furnishing data to a form. As I flip
through the records on the form, I'd like to see the JPG and BMP
images referenced in my table field named [ChkImageFile]. The string
there is a full pathspec to the image. IE, "c:\MyDir\MyImage.jpg"
(1) What Class name should I use? MS Paint HELP doesn't specify.
(2) Will Class name change based on image type (jpg / bmp)?
(3) Can I leave SourceItem alone? Or must I specify?