how to create a .doc file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
xuleit
Forum Newbie
Posts: 14
Joined: Sun Feb 15, 2004 6:41 pm

how to create a .doc file

Post by xuleit »

i don't know how to print information in my database in a special format.i want to create a .doc file to solve this problem,can somebody help me ?
thanks in adv. :lol:
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

how do you mean a .doc file? just write to it as you would any other normal .txt file? or in M$ Word formatting?
djot
Forum Contributor
Posts: 313
Joined: Wed Jan 14, 2004 10:21 am
Location: planet earth
Contact:

just pring

Post by djot »

he means, he wants to output his data printer friendly.

If it's mainly text based data, you may just build up normal html site with some adjusting for the printer and print that out directly from the browser. Or you have to put it all into PDF-Format instead of .doc.
xuleit
Forum Newbie
Posts: 14
Joined: Sun Feb 15, 2004 6:41 pm

thanks

Post by xuleit »

if i have to put it all into PDF-Format,what should i do?any code can somebody show me?
User avatar
Smeagol
Forum Newbie
Posts: 14
Joined: Tue Jan 20, 2004 11:51 pm

Post by Smeagol »

You can find out almost everything you need to know about creating pdfs here:

http://au.php.net/pdf

Fabulous :)
Post Reply