saravananr Posted December 5, 2006 Share Posted December 5, 2006 Hi ALL,I need more info about methods and properties which is to insert a TEXT in TEXT BOX for Powerpoint Slides, and i have to change the background image, FONT, SIZE, Etc... for my Powerpoint Slides on FLY.I have displays the code below.[code]<?php$powerpnt = new COM("powerpoint.application");//Creating a new presentation$pres=$powerpnt->Presentations->Add();//Adds the first slide. "12" means blank slide$pres->Slides->Add(1,12);//Adds another slide. "10" means a slide with a clipart and text$pres->Slides->Add(2,10);//Adds a textbox (1=horizontal, 20=left margin, 50=top margin, 300=width, 40=height)$pres->Slides[1]->Shapes->AddTextbox(1,20,50,300,40);//Adds a 16-point star (94=16 point star, 100=left margin, 200=top margin, 300=width, 300=height)$pres->Slides[1]->Shapes->AddShape(94,100,200,300,300);//Save the document as PPT file$powerpnt->Presentations[1]->SaveAs("D:\byeworld.ppt");//And of course, quit Power Point$powerpnt->quit();//Give the user a download linkecho '<a href="byeworld.ppt">Download file as .ppt</a>';?>[/code]Thanks in advance.awaiting for earlies reply.Saravanan.R Link to comment https://forums.phpfreaks.com/topic/29500-create-a-powerpoint-file-on-fly-using-php-com/ Share on other sites More sharing options...
genericnumber1 Posted December 5, 2006 Share Posted December 5, 2006 "powerpoint.application" that would be... a 3rd party library? Link to comment https://forums.phpfreaks.com/topic/29500-create-a-powerpoint-file-on-fly-using-php-com/#findComment-135373 Share on other sites More sharing options...
saravananr Posted December 5, 2006 Author Share Posted December 5, 2006 no. its Microsot COM application object. Check the prev. post code. Link to comment https://forums.phpfreaks.com/topic/29500-create-a-powerpoint-file-on-fly-using-php-com/#findComment-135375 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.