Document does not open in Open office 3.2

Jan 28, 2011 at 9:01 AM

Hello Friends,

My document get generated. But is not opening the document.But it gives me an error saying open office is Corrupt...Any help plz

Jan 28, 2011 at 2:20 PM

I had a similar problem with Open Office 3.2. I wrote Open Office and they suggested I upgrade to dev version 3.4, which worked. I see OO 3.3 is released. You might try that.

Also, you might look at LibreOffice.

Good luck!

Jan 29, 2011 at 4:58 AM


How can i have a pop up which describe to save or open the file.

Jan 29, 2011 at 1:51 PM

I think this is the same question as this thread:

Try this code at the end:

$fileName = 'my_file_name';
header('Content-Type: application/');
header('Content-Disposition: attachment;filename="'.$fileName.'.docx"'); // set the file name
header('Cache-Control: max-age=0');

// Save and output file to browser
$objWriter = PHPWord_IOFactory::createWriter($PHPWord, 'Word2007');
exit; //you MUST have the exit!