PC Review


Reply
Thread Tools Rate Thread

Cannot add picture using Shapes.AddPicture method

 
 
New Member
Join Date: Apr 2010
Posts: 1
 
      26th Apr 2010
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:
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shapes.AddPicture(...) - different behavior in Powerpoint 03 vs. 2 Wolf7 Microsoft Powerpoint 3 3rd May 2010 05:35 PM
Shapes.AddPicture(...) new images are ignored MediaMogul Microsoft Powerpoint 3 14th Jul 2009 08:13 AM
Excel 2007 Prohibits Shapes.AddPicture from URL? =?Utf-8?B?TGF6emFyb25p?= Microsoft Excel Programming 4 8th Jun 2007 09:53 PM
From access, SCALE picture in Word after using AddPicture method Lance.Carter via AccessMonster.com Microsoft Access VBA Modules 1 6th Jun 2006 11:13 AM
Shapes.AddPicture run-time error Matt Microsoft Excel Programming 0 22nd Aug 2003 04:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:44 AM.