Hi all,
Im trying to migrate a php application from an windows 2k3 server to an amazon’s AWS EBS instance, which is windows 2008 Datacenter with IIS7.
I have office installed on the instance and the relevant permissions assigned to the office powerpoint DCOM object.
My problem is that DCOM object gets instantiated ok, but cannot open or save files… i get the following error ‘Source: Microsoft Office PowerPoint 2003 Description: Presentation.SaveAs : An error occurred while PowerPoint was saving the file.’
This is the code im testing:
$ppoint = new COM("PowerPoint.application") or die("Unable to instantiate PowerPoint");
//Add a slide
$slide=$ppoint->Presentations[1]->Slides->Add(1,1);
//Get the name of this slide
$slidename = $slide->Name();
//Change the name of this new slide
$slide->Name = "New Slidename";
//Save the presentation
$ppoint->Presentations[1]->SaveAs("D:\\\\wwwroot\\\ est.ppt");
$ppoint->Presentations[1]->Close();