By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,461 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

COM ppt

P: n/a
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

Dec 22 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Dec 22, 12:17 am, rafael <j.raf...@gmail.comwrote:
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/micro...e2193fc619fe4/
http://groups.google.com/group/micro...0f4188ef40bc/\

Csaba Gabor from Vancouver
Dec 23 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.