Hi,
I am trying to do dynamic PowerPoint presentations using ASP. I get the following error message:
Error Type:
Microsoft PowerPoint 2002 (0x80070057)
Slides.Add : Invalid enumeration value.
/itp/html2ppt.asp, line 15
with the following code
<% Response.ContentType = "application/vnd.ms-powerpoint" %>
<%
Dim ppApp
Set ppApp = CreateObject("Powerpoint.Application")
' Make it visible.
ppApp.Visible = True
' Add a new presentation.
Dim ppPres
Set ppPres = ppApp.Presentations.Add(msoTrue)
' Add a new slide.
Dim ppSlide1
Set ppSlide1 = ppPres.Slides.Add(1,ppLayoutTitleOnly)
' Add some text.
ppSlide1.Shapes(1).TextFrame.TextRange.Text = "My first slide"
ppSlide1.Shapes(2).TextFrame.TextRange.Text = "Automating Powerpoint is easy" & vbCr & "Using Visual Basic is fun!"
%>
Is this even the right way to do it and do you know some good resources for asp to powerpoint applications. Thanx a lot!
-Jani
