By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,751 Members | 1,175 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,751 IT Pros & Developers. It's quick & easy.

Download data from database to Word and take print

P: 99
HI guys, i got stuck in a problem, actually i have a form for registration. Actually what i want is that when the registration is finished then i wanto to access the data in word formate and take a print. I know how to download in case of excel, but not in word. if it is possible in word then please help me. thanks in advance
Feb 7 '08 #1
Share this Question
Share on Google+
2 Replies


harshmaul
Expert 100+
P: 490
Hi,

Content disposition is the way forward....
Add these few lines at the top of your page.

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. header('Content-type: application/application/msword');
  3. header('Content-Disposition: attachment; filename="downloaded.doc"');
  4. ?>
Feb 7 '08 #2

ifedi
P: 60
Hi,

Content disposition is the way forward....
Add these few lines at the top of your page.

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. header('Content-type: application/application/msword');
  3. header('Content-Disposition: attachment; filename="downloaded.doc"');
  4. ?>
Thereafter, what?
Please give some more details.
Feb 8 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.