For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > December 2007 > COM ppt









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author COM ppt
rafael

2007-12-22, 4:02 am

I would like to create powerpoint file from php, and I have this php
script i got from the internet...

<?
$powerpnt = new COM("powerpoint.application");
$pres=$powerpnt->Presentations->Add();
$pres->Slides->Add(1,12);
$pres->Slides->Add(2,10);
$pres->Slides[1]->Shapes->AddTextbox(1,20,50,300,40);
$pres->Slides[1]->Shapes->AddShape(94,100,200,300,300);
$powerpnt->Presentations[1]->SaveAs("D:\test.ppt");
$powerpnt->quit();
echo '<a href="test.ppt">Download file as .ppt</a>';
?>

I would like to add a Chart....I tried searching the internet seems i
can't find anything...

Can anybody help ?

Thanx...

Regards,
Rafael

Csaba Gabor

2007-12-23, 7:02 pm

On Dec 22, 12:17 am, rafael <j.raf...@gmail.com> wrote:
> I would like to create powerpoint file from php, and I have this php
> script i got from the internet...
>
> <?
> $powerpnt = new COM("powerpoint.application");
> $pres=$powerpnt->Presentations->Add();
> $pres->Slides->Add(1,12);
> $pres->Slides->Add(2,10);
> $pres->Slides[1]->Shapes->AddTextbox(1,20,50,300,40);
> $pres->Slides[1]->Shapes->AddShape(94,100,200,300,300);
> $powerpnt->Presentations[1]->SaveAs("D:\test.ppt");
> $powerpnt->quit();
> echo '<a href="test.ppt">Download file as .ppt</a>';
> ?>
>
> I would like to add a Chart....I tried searching the internet seems i
> can't find anything...
>
> Can anybody help ?
>
> Thanx...
>
> Regards,
> Rafael


I searched in Google for: powerpoint charts add
The following two links look useful:
http://groups.google.com/group/micr...9e2193fc619fe4/
http://groups.google.com/group/micr...a0f4188ef40bc/\

Csaba Gabor from Vancouver
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com