Inserting Picture in powerpoint slide in PowerPoint Automation
-
Hi All, I am working on PowerPoint Automation. I have an image stored in the database which I have to insert in ppt slide. Can anybody give me some pointer to how to do this? I am using the following piece of code objSlide.Shapes.AddPicture(fn,Microsoft.Office.Core.MsoTriState.msoFalse,Microsoft.Office.Core.MsoTriState.msoTrue,380,200,0,0); where fn is the name of the file. But i can not see the image in the slide. :(
Thanks, Avanika
-
Hi All, I am working on PowerPoint Automation. I have an image stored in the database which I have to insert in ppt slide. Can anybody give me some pointer to how to do this? I am using the following piece of code objSlide.Shapes.AddPicture(fn,Microsoft.Office.Core.MsoTriState.msoFalse,Microsoft.Office.Core.MsoTriState.msoTrue,380,200,0,0); where fn is the name of the file. But i can not see the image in the slide. :(
Thanks, Avanika
You will have to get the picture from database and store it in the Image class. After that you can use that Image class for your slide.
Regards, Amit Kumar HDISM, PGDCA, MCP, MCAD, MCSD amit_chikara2002@hotmail.com
-
You will have to get the picture from database and store it in the Image class. After that you can use that Image class for your slide.
Regards, Amit Kumar HDISM, PGDCA, MCP, MCAD, MCSD amit_chikara2002@hotmail.com
Hey Amit, Thanks for the reply. Can you please give me sample code for that?
Thanks, Avanika