Hi there,
Can someone please direct me to a thread/or give example of inserting images onto PowerPoint 2007 presentation/SlideEx object using VB .NET?
Thanks!
Hi there,
Can someone please direct me to a thread/or give example of inserting images onto PowerPoint 2007 presentation/SlideEx object using VB .NET?
Thanks!
Hello,
There is code example of inserting image to a slide:
[C#]
Stream stream = new FileStream(“image.jpg”, FileMode.Open);
Bitmap bmp = new Bitmap(stream, false);
ImageEx image = pres.Images.AddImage(bmp);
slide.Shapes.AddPictureFrame(ShapeTypeEx.Rectangle, 0, 0, image.Width, image.Height, image);
[VB.NET]
Dim stream As Stream = New FileStream(“image.jpg”, FileMode.Open)
Dim bmp As Bitmap = New Bitmap(stream, False)
Dim image As ImageEx = pres.Images.AddImage(bmp)
slide.Shapes.AddPictureFrame(ShapeTypeEx.Rectangle, 0, 0, image.Width, image.Height, image)
Thank you for your prompt response...