How to insert a picture in a PowerPoint 2000 slide in JScript

G

GPTIX

I am trying to add an image to a slide inside a JScript script.

The variable mySlide holds the slide on which I have decided to insert a picture. The image I want to add is the file c:\Sample.jpg.

I have tried the following code:

ppSlide.Shapes.AddPicture("c:\Sample.jpg", msoFalse, msoFalse, 233, 175, 255, 191);

This causes an error dialog to appear:

ERROR: -2147024809: The specified value is out of range.

Any ideas?

Best,

G Taylor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top