SAVE AS AND SAVE LOCATION

Nov 4, 2012 at 4:17 PM

Hi guys, i wanna ask how to save as the ppt file with my own file name? instead of $objWriter->save(str_replace('.php', '.pptx', __FILE__));

and how to set the generated ppt location? such as my desktop..

thanks! :)

Apr 15, 2013 at 2:09 PM
Hello! Basically its:
$objWriter->save("D:\wamp\www\Project\PPTOutput\Output.pptx");
Instead of
$objWriter->save(str_replace('.php', '.pptx', FILE));

Just pop in the file directory and the 'Filename.PPTX' (.PPT will cause an error)

Hope this helps :P