?
Solved

Create PowerPoint Presentation from PHP script?

Posted on 2006-12-02
5
Medium Priority
?
2,890 Views
Last Modified: 2008-01-09
Is there an API for MS PowerPoint that would allow me to create a PP presentation from PHP code?
0
Comment
Question by:tradeline
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 35

Accepted Solution

by:
Raynard7 earned 2000 total points
ID: 18059248
Hi,
Unfortunatley there is no code available to do this directly, microsoft makes this difficult - especially if you are operating on a non-windows operating system.  You may be able to shell out to a program that handles this for you with the appropriate dll calls (.NET projects would be particularly good for this)
For more information please see:
http:Q_21360046.html "Powerpoint and PHP integration"
0
 

Author Comment

by:tradeline
ID: 18060340
That's the terrible news I was expecting :(.  I'm running PHP on a Linux server.  I'd need to setup another script, running on a windows server, connect remotely to that script, have the script use COM to build the PowerPoint file and then let the user save it on their desktop?  Is this correct?

The only other way is to scrap the code and re-write it in .NET, or at least host the app on a windows box.

Thanks.
Scott.
0
 
LVL 8

Expert Comment

by:John Kawakami
ID: 18066128
You can use Copy-and-Paste to do the import.  Format the text as an <OL> or an <UL> or even using the H1 to H6 tags.  Copy the text to export, and then paste it into PPT's outline view.  (The outline tab on the left side.) PPT will try to parse your outline, translating the indentations into different heading levels, and styling them up.

If you really need to automate it, you can use some COM automation to load up your web page, and then copy and paste into PPT.

(If you're perfectionistic, I suppose you can learn PPTs xml format and get PHP to produce that as output.  Can't help you there.  http://msdn2.microsoft.com/en-us/library/ms406049.aspx  )
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question