Connecting Tech Pros Worldwide Help | Site Map

how to print a pdf or doc file

  #1  
Old June 23rd, 2009, 12:52 PM
Familiar Sight
 
Join Date: Nov 2007
Posts: 225
Hi

I want to print a pdf file or doc file when I click the print button it should open the print dialog box
  #2  
Old June 23rd, 2009, 01:07 PM
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,862
Provided Answers: 9

re: how to print a pdf or doc file


Good luck with that. When you have a question and more information, try again.
  #3  
Old June 23rd, 2009, 01:13 PM
Familiar Sight
 
Join Date: Nov 2007
Posts: 225

re: how to print a pdf or doc file


Quote:
Originally Posted by Markus View Post
Good luck with that. When you have a question and more information, try again.
could not got what you wanted to say here!
  #4  
Old June 23rd, 2009, 02:04 PM
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,862
Provided Answers: 9

re: how to print a pdf or doc file


Quote:
Originally Posted by mukeshrasm View Post
could not got what you wanted to say here!
I couldn't get what you wanted to say either. Explain your question.
  #5  
Old June 23rd, 2009, 08:40 PM
dlite922's Avatar
Expert
 
Join Date: Dec 2007
Location: Moon, Dark Side
Posts: 1,075

re: how to print a pdf or doc file


Quote:
Originally Posted by mukeshrasm View Post
Hi

I want to print a pdf file or doc file when I click the print button it should open the print dialog box
That's easy to do, just click print and the dialogue box will appear. If no icon, go to File->Print or press Ctrl+P

Your pdf and doc programs already contain this functionality.

If you want this done in PHP, PM me, I have the whole code that already does this and more that I can easily give to you for free.




Dan
  #6  
Old June 27th, 2009, 08:18 AM
Familiar Sight
 
Join Date: Nov 2007
Posts: 225

re: how to print a pdf or doc file


Quote:
Originally Posted by dlite922 View Post
That's easy to do, just click print and the dialogue box will appear. If no icon, go to File->Print or press Ctrl+P

Your pdf and doc programs already contain this functionality.

If you want this done in PHP, PM me, I have the whole code that already does this and more that I can easily give to you for free.




Dan
Hi If you have code please give me!
  #7  
Old June 27th, 2009, 08:23 AM
Familiar Sight
 
Join Date: Nov 2007
Posts: 225

re: how to print a pdf or doc file


Quote:
Originally Posted by Markus View Post
I couldn't get what you wanted to say either. Explain your question.
Hi

In my website I have three buttons namely Save to Desktop, Email to Friend and Print. when user click Save to Desktop a Save dialog comes asking to save the file. when user clicks Email to Friend a div popup form open asking to enter the email. and when user clicks on Print it should open a print dialog box. as we usually do in ms office.

now I think you got that what I wanted to do.
  #8  
Old June 27th, 2009, 10:35 AM
omerbutt's Avatar
Needs Regular Fix
 
Join Date: Nov 2006
Location: Earth Obviously :P
Posts: 340

re: how to print a pdf or doc file


Quote:
Originally Posted by Markus View Post
Good luck with that. When you have a question and more information, try again.
MARKUS you are really around to annoy the people of God :D
  #9  
Old June 27th, 2009, 11:04 AM
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,862
Provided Answers: 9

re: how to print a pdf or doc file


Quote:
Originally Posted by mukeshrasm View Post
Hi

In my website I have three buttons namely Save to Desktop, Email to Friend and Print. when user click Save to Desktop a Save dialog comes asking to save the file. when user clicks Email to Friend a div popup form open asking to enter the email. and when user clicks on Print it should open a print dialog box. as we usually do in ms office.

now I think you got that what I wanted to do.
Checkout the javascript window.print() method. PHP cannot print from the browser as it has absolutely nothing to do with it.
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to print .pdf and .doc files in vb.net myrrh answers 3 January 3rd, 2008 03:15 PM
Print PDF File Jeff Mason answers 3 November 21st, 2005 11:12 PM
Printing a pdf in an asp.net app Brian Hanson answers 10 July 21st, 2005 09:23 AM
Analyse of PDF (or EPS?) Johan Holst Nielsen answers 9 July 18th, 2005 07:04 AM