M
Milo¹ Vukov
Hi, i "use" VB6 to open powerpoint presentation and fill Forms.Image
controls.
The problem is that when i execute function below in VBA works, but when i
execute this function in VB6 it i get this error:
Run-time error -2147418113 (8000ftfty):
Method Picture' oF object 'Ilmage' Failed
Sub AddImageAndFillIt(objPres As PowerPoint.Presentation)
Dim objShape As PowerPoint.Shape
'1 add image
Set objShape = objPres.SlideMaster.Shapes.AddOLEObject(Left:=484.75,
Top:=332.375, _
Width:=124.75, Height:=90.75, ClassName:="Forms.Image.1",
Link:=msoFalse)
'2 fill it with picture
objShape.OLEFormat.Object.Picture = LoadPicture("c:\logo.bmp")
End Sub
I also get this error in other office applications and in all versions
(2000,XP,2003).
I don't know what is. Anyone can explain me?
Or have a solution?
(I must work also in vb6!)
Tnx,Milos Vukov
controls.
The problem is that when i execute function below in VBA works, but when i
execute this function in VB6 it i get this error:
Run-time error -2147418113 (8000ftfty):
Method Picture' oF object 'Ilmage' Failed
Sub AddImageAndFillIt(objPres As PowerPoint.Presentation)
Dim objShape As PowerPoint.Shape
'1 add image
Set objShape = objPres.SlideMaster.Shapes.AddOLEObject(Left:=484.75,
Top:=332.375, _
Width:=124.75, Height:=90.75, ClassName:="Forms.Image.1",
Link:=msoFalse)
'2 fill it with picture
objShape.OLEFormat.Object.Picture = LoadPicture("c:\logo.bmp")
End Sub
I also get this error in other office applications and in all versions
(2000,XP,2003).
I don't know what is. Anyone can explain me?
Or have a solution?
(I must work also in vb6!)
Tnx,Milos Vukov