Save as .doc file compatable with 2003 Word

Jun 18, 2012 at 6:46 PM
Edited Jun 22, 2012 at 6:44 PM

Hi,

I am newbie to phpword library. This is the wonderful library and i found all the feature that i need to generate my auto word document but except one. I need to save the file in .doc format and it should be in compliance with the 2003 Microsoft Office.

This works fine:
$objWriter = PHPWord_IOFactory::createWriter($PHPWord, 'Word2007');
$objWriter->save('myDoc.docx');

but, this doesn't
$objWriter = PHPWord_IOFactory::createWriter($PHPWord, 'Word2003');
$objWriter->save('myDoc.doc');
 

Thanks in Advance..