What I am attempting to do is pipe data from the database to the users PC that has MS Office installed and have Word and Excel open the data in a readable format. In excel this exercise was trivial, I simply did a
Header("Content-type: application/vnd.ms-excel");
and then echo'ed the data to the client tab delimited with carriage returns at the end of rows and excel picked it up perfectly. Now, I attempted to pipe a regular HTML document to word (which it will normally open) but instead of using the html formatting, it defaults to plain text. Should I include doctype or other tags for word to pick it up correctly? Any help would be appreciated.
Chris King