T
Trigger
Hi, I'm trying to insert a mix of .ppt slides and .jpg pictures into a
presentation and I was wondering if there is a way (using
VBscript/ASP) to insert pictures into powerpoint presentations without
having to insert a blank slide first?
I currently have:
fileExt = fso.GetExtensionName(infile(i))
If fileExt = "jpg" Then
Call newPres.Slides(i).Shapes.AddPicture(infile(i), _
False, True, 100, 100, 70, 70)
Else 'if its not a picture then it has to be a ppt file...
newPres.Slides.InsertFromFile (infile(i), i)
End If
i = i + 1
Loop Until i = numFiles
This simply inserts the picture into the last slide inserted into the
presentation.
Also, would anyone know why the ".AddPicture" method might not work
when called within an ASP file? It simply seems to skip the method,
however the ".InsertFromFile" DOES work. Any suggestions?
Thanx,
Tristan
presentation and I was wondering if there is a way (using
VBscript/ASP) to insert pictures into powerpoint presentations without
having to insert a blank slide first?
I currently have:
fileExt = fso.GetExtensionName(infile(i))
If fileExt = "jpg" Then
Call newPres.Slides(i).Shapes.AddPicture(infile(i), _
False, True, 100, 100, 70, 70)
Else 'if its not a picture then it has to be a ppt file...
newPres.Slides.InsertFromFile (infile(i), i)
End If
i = i + 1
Loop Until i = numFiles
This simply inserts the picture into the last slide inserted into the
presentation.
Also, would anyone know why the ".AddPicture" method might not work
when called within an ASP file? It simply seems to skip the method,
however the ".InsertFromFile" DOES work. Any suggestions?
Thanx,
Tristan