I have the following code which clones multiple presentations. An empty slide remains. How to get rid of it? The following is for PPT but I also need the equivalent for PPTX.
Thanks!
I am just looping through an array to grab the file names:
ppt_template = ppt_template.TrimEnd(",").ToString
Dim arr_PPT As Array = Split(ppt_template, “,”, -1)
If ppt_template.Length > 0 Then
For i As Integer = 0 To UBound(arr_PPT)
Dim srcPres1 As New Presentation(Path.Combine(Request.PhysicalApplicationPath, “Files” & arr_PPT(i)))
'Clone first presentation with the newly created presentation
pres = getClonedPres(srcPres1, pres)
'HOW? Remove the first default slide of the merged presentation?
Try
'pres.Slides.RemoveAt(0)
pres.DeleteUnusedMasters()
Catch ex As Exception
End Try
Next
End If