Imports Microsoft.Office.Interop.PowerPoint Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim ppt As New Presentation() ppt.LoadFromFile("Desktop\test.pptx") For i As Integer = 0 To ppt.Images.Count - 1 Dim image As Image = ppt.Images(i).Image image.Save(String.Format("Desktop\Images{0}.jpg", i)) Next End Sub End Class
Dim ppt As New Presentation()
Error 1 'Microsoft.Office.Interop.PowerPoint.PresentationClass.Friend Sub New()' is not accessible in this context because it is 'Friend'.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)