DEV Community

Oscar Sun(孫守真字任真)
Oscar Sun(孫守真字任真)

Posted on

Answer: Replace a picture on a slide in PowerPoint using VSTO

I can figure out 3 ways to add a picture in a slide now, and 2 of them are associated with clipboard. You can try my code first.

        private void Replace_a_picture_on_a_slide_in_PowerPoint_using_VSTO()
        {
            string fFullName = "A:\\Users\\oscar\\Dropbox\\VS\\VBA\\stackoverflow.pptm"
            string pFullName = @"A:\Users\oscar\Dropbox\test\DSC00725.jpg";//the value just for test


            //open pptm file and set the

Top comments (0)