Print word page

Discussion in 'PHP' started by MSK7, Dec 21, 2009.

  1. #1
    Hello all,

    I am writing all my data from a form to a word doc file using php & html .
    & It is working well .

    But Now I want to apply a link on that developed word page
    like "Print this page" to print that word page.

    Please suggest me how this can be applied on word page.

    any suggestion will be appreciated.


    Thanks & Regards.
     
    Last edited: Dec 21, 2009
    MSK7, Dec 21, 2009 IP
  2. xenon2010

    xenon2010 Peon

    Messages:
    237
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    there is javascript function you can use..
    i think its print(); or somthing like that
    just google it..
     
    xenon2010, Dec 21, 2009 IP
  3. MSK7

    MSK7 Member

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    Hello xenon2010

    Thanks for your reply .

    Along With my data , I write this code on that page
    
    <a href='' onclick='javascript:window.print();'> Print this Page </a>
    
    Code (markup):
    but onclick to this link no popup initiated for the print option on word page .

    please suggest more on this .

    Thanks.
     
    MSK7, Dec 21, 2009 IP
  4. xenon2010

    xenon2010 Peon

    Messages:
    237
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    what do you mean by on word page?
    I really didn't understand what you wanna do in here..
     
    xenon2010, Dec 21, 2009 IP
  5. CodedCaffeine

    CodedCaffeine Peon

    Messages:
    130
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Try this:

    <a href="javascript:window.print();">Print this Page</a>
    Code (markup):
     
    CodedCaffeine, Dec 23, 2009 IP