Hi folks,
I'm trying to add a picture to my slide but without success unfortunately.
I'm using AddPicture method of Shapes and what ever i'm trying to do, I get the following error:
Description: "The specified file wasn't found."
Number: -2147024809
The following is my code:
Anyone can help me please?
Thank you!
Yair
I'm trying to add a picture to my slide but without success unfortunately.
I'm using AddPicture method of Shapes and what ever i'm trying to do, I get the following error:
Description: "The specified file wasn't found."
Number: -2147024809
The following is my code:
Code:
function AddPicture(fileName,Left , Top , Width , Height)
{
try
{
LastError = '';
var objPicture = objSlide.Shapes.AddPicture("c:\pictures\yair.bmp", msoFalse, msoCTrue,Left,Top,Width,Height);
}
catch(e)
{
LastError = e;
}
return LastError == '';
}
Anyone can help me please?
Thank you!
Yair