Menu
Hi below is code that I found that opens a word file. Is there anyway that I can is the process of openng the file and write to the word document when it opens it. Ideally to the location of a bookmark on the document.
I’m trying to avoid using COM as its creating me some challenges (lots of error messages)
[code=php]
<?php
// We’ll be outputting a Word Document
header(“Content-type: application/msword”);
// It will be called worddoc.doc
header(“Content-Disposition: attachment; filename=worddoc.doc”);
// The file source is in test.doc
readfile(‘letter.doc’);
?>