I agree that @Nick answer is correct, but you do not need an external tool to do what you need, at least not for Word.
To generate a Word document simply add this code at the top of the page you want to convert.
header("Content-Type: application/vnd.ms-word");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("content-disposition: attachment;filename=MyReport.doc");
?>
For Excel I found this (did not test):
header("Content-Type: application/vnd.ms-excel; charset=utf-8");
header("Content-Disposition: attachment; filename=abc.xls");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false);
?>