This project is read-only.

SAVING TO DIFFERENT FILE NAMES

May 14, 2010 at 10:07 PM

How do I save to different file names other than the defaults?

May 14, 2010 at 10:23 PM
$fileName = 'myFileName.pptx'
$objWriter = PHPPowerPoint_IOFactory::createWriter($objPHPPowerPoint, 'PowerPoint2007');
$objWriter->save($fileName);
May 14, 2010 at 11:51 PM

$fileName = 'myFileName.pptx' needed a semi colon which caused an error to point to the line below ... :-).  Otherwise just what the doctor ordered!

Thanks!