insert image into slide

V

vj5

Hi experts
how to insert image in powerpoint slide . i am using the following code:
appPW.ActiveWindow.Selection.SlideRange.Shapes.AddPicture(strImage,
MsoTriState.msoFalse, MsoTriState.msoCTrue, 1, 1, 1, 1);

but its doing nothing
 
V

vj5

Hi experts
thanks for helping me !
it works fine now,
but i am getting error when there is no slide present.
how i can disable the commandbarbutton when there is no slide present ?
 

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