how to print a pdf or doc file 
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
| 
June 23rd, 2009, 01:07 PM
|  | 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.
| 
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 Good luck with that. When you have a question and more information, try again. | could not got what you wanted to say here!
| 
June 23rd, 2009, 02:04 PM
|  | 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 could not got what you wanted to say here! | I couldn't get what you wanted to say either. Explain your question.
| 
June 23rd, 2009, 08:40 PM
|  | 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 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
| 
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 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!
| 
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 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.
| 
June 27th, 2009, 10:35 AM
|  | 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 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
| 
June 27th, 2009, 11:04 AM
|  | 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 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.
|  | | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 225,662 network members.
|