Superted Posted September 17, 2007 Share Posted September 17, 2007 Hello, Please excuse my 'newb'-ness, i have attempted to search these forums but searching the string "rtf" doesn't bring up much apart from a lot of people writing the word portfoilo. I have also spent many hours googling and not come up with anything which fully works...yet. Basically what I'm attempting to do, using php is generate a word document which contains varibles which are populated by a MySQL database. I've tried a number of ways thus far but the below method has been the closest. The word document is basically a letter with a picture at the top, then the addresses, then a mini introduction, a small table and then the end signature. I've acomplished this using; header("Content-disposition: attachment; filename=letter.doc"); Then writing the 'letter' in html with all the < b>'s and < u>'s and a couple < hr>'s So, so far so good. All is well, the only thing which i haven't been able to do is populate the footer of the document. This being the very bottom of each page when the document is printed. I want to enter an address into the footer but i'm unable to faverm out how this can be done using the doc content-disposition method. Thankyou for any advice given. I can post snippets of my current code if anyone requires it. Kind regards Superted Link to comment https://forums.phpfreaks.com/topic/69689-using-php-to-generate-an-rtf-file-but-having-a-footer/ Share on other sites More sharing options...
Superted Posted September 18, 2007 Author Share Posted September 18, 2007 Guessing no one can help? Link to comment https://forums.phpfreaks.com/topic/69689-using-php-to-generate-an-rtf-file-but-having-a-footer/#findComment-350618 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.