This project is read-only.

word save as

Jan 8, 2014 at 3:34 PM
Hi, i test the phpword, it's work but i have a question, it's possible when we make the word document to save as in my desktop and not in the server?

thanks
Jan 8, 2014 at 4:25 PM
lo que yo he echo es esto

Guardo en una carpeta del servidor
$objWriter = PHPWord_IOFactory::createWriter($PHPWord, 'Word2007');
$objWriter->save('Ruta_carpeta_escribible/temp/Text.docx');

y doy un link pra que lo puedan descargar

echo '<a href="Ruta_carpeta_escribible/temp/Text.docx">descargar</a>';