web 2.0

How to use PHP & PowerPoint - Export/Convert PPT To JPG and Send Email Attachment

How to use PHP & PowerPoint - Export/Convert PPT To JPG and Send Email Attachment The Learn / Tutorial / Sctipts php programming how to using  PHP Create PowerPoint and Export/Convert PPT To JPG and Send Email Attachment

ShotDev Focus:
- PHP  & Create PowerPoint and Export/Convert PPT To JPG and Send Email Attachment

Example

php_ppt_to_mail.php


<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<?
$ppApp = new COM("PowerPoint.Application");
$ppApp->Visible = True;

$strPath = realpath(basename(getenv($_SERVER["SCRIPT_NAME"]))); //  C:/AppServ/www/myphp

$ppName = "MySlides.ppt";
$FileName = "MyPP";

//*** Open Document ***//
$ppApp->Presentations->Open(realpath($ppName));

//*** Save Document ***//
$ppApp->ActivePresentation->SaveAs($strPath."/".$FileName,17);   //'*** 18=PNG, 19=BMP **'
//$ppApp->ActivePresentation->SaveAs(realpath($FileName),17);

$ppApp->Quit;
$ppApp = null;
?>
PowerPoint Created to Folder <b><?=$FileName?></b>
</body>
</html>

Create a php file and save to path root-path/myphp/

Run
http://localhost/myphp/php_ppt_to_mail.php

.
.
.

Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

One Response to “How to use PHP & PowerPoint - Export/Convert PPT To JPG and Send Email Attachment”

  1. 3ongoing…

Leave a Reply

You must be logged in to post a comment.