Create Multiple PowerPoint Slides

J

Jim

I am using PowerPoint 2003.

I have a HTML/ASP web page that uses DIV and TABLE statements to create data
for a PowerPoint slide.

My code works if I create a single slide. I have not figured out how to make
multiple slides.

If I try to create multiple slides, all the data overwrites slide number
one. What I need is something like the page break used in Word.

This is a small example to illustrate the problem:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<%Dim ndx%>
<head>
<title>Test Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META HTTP-EQUIV="pragma" CONTENT="nocache">
<style>
<!--
BODY { position:absolute; font:Times New Roman; font-size:12pt;
font-weight:bold; line-height:0.75 }
-->
</style>
</head>
<body>
<% for ndx = 1 to 2 %>
<div align="center" style="top:18px; height:20px;
font-size:14pt">UNCLAS</div>
<div align="center" style="top:42px; height:20px; font-size:18pt">ISSUE
<%=ndx%> TITLE GOES HERE</div>
<% next %>
</body>
</html>
<%
'set page content type, etc.
Response.ContentType = "application/vnd.ms-powerpoint"
Response.addheader "Content-Disposition", "attachment; filename=PPSample.ppt"
%>


In this example, two slides should be created, each with a different number
in the ndx field of the title of the second DIV statement. My problem is that
only one is created and the ndx field is overwritten.

I am trying to eliminate using Office Automation with PowerPoint running on
our server.


Thanks in advance for any and all help.
 
J

Jim

I have not worked with MHT files before. The only direct interface with
PowerPoint is through the Response.ContentType =
"application/vnd.ms-powerpoint" statement.

How would I create the MHT and XML files using the example code?
 
J

Jim

Getting the data from the server will not be a problem. I just need to know
what changes are required to be made in the sample code below to get
PowerPoint to start/run on the clients machine.
 
J

Jim

The sample code is a HTML/ASP/VBScript web page that is called to build the
slides. ASP web pages run on the server and does not allow for identifying
the specific types on DIM statements. Also, I am not trying "... to get code
to run on PPT startup ...". I am trying to get PPT to start, on the client
machine, from my web page code which is running on the server (because it is
ASP/VBScript code).

The code changes you identified would be correct for VBA or PPT macros.

I may be trying to do something that PowerPoint was not designed to do.

I will keep trying to inplement your previous suggestion of using MHT and
XML files.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top