COM ppt

COM ppt

am 22.12.2007 09:17:04 von Rafael

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 '';
?>

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

Can anybody help ?

Thanx...

Regards,
Rafael

Re: COM ppt

am 24.12.2007 00:29:26 von Csaba Gabor

On Dec 22, 12:17 am, rafael 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 '';
> ?>
>
> 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/microsoft.public.java.visualj ++/browse_thread/thread/449e2193fc619fe4/
http://groups.google.com/group/microsoft.public.vb.general.d iscussion/browse_thread/thread/975a0f4188ef40bc/\

Csaba Gabor from Vancouver