If you are a do-it-yourselfer, you have to love www.wotsit.org for file formats. Take a look at:
http://www.wotsit.org/search.asp?s=text
Using info from wotsit.org, I have PHP4 code which converts database result sets into native file formats for M$ Excel (.XLS), Lotus 1-2-3 (.WK1), dBase (.DBF), WordPerfect (.WP5), CSV, HTML, XML, and so on. I originally developed the routines in C and FORTRAN, then ported the code over after learning PHP.
I looked at doing Word (.DOC), but didn't have enough justification for it at the time. If there is enough interest, I could look into writing a package for outputting native binary Word documents.
FYI... I'm currently on vacation until 1/4/2001, so e-mail replies may not be prompt.
-- Michael
inquiries@darkstreak.com
Darkstreak Consulting & Innovations
www.darkstreak.com