Connecting Tech Pros Worldwide Forums | Help | Site Map

how to print a pdf or doc file

Familiar Sight
 
Join Date: Nov 2007
Posts: 244
#1: Jun 23 '09
Hi

I want to print a pdf file or doc file when I click the print button it should open the print dialog box

Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,947
#2: Jun 23 '09

re: how to print a pdf or doc file


Good luck with that. When you have a question and more information, try again.
Familiar Sight
 
Join Date: Nov 2007
Posts: 244
#3: Jun 23 '09

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!
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,947
#4: Jun 23 '09

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.
dlite922's Avatar
Expert
 
Join Date: Dec 2007
Location: Moon, Dark Side
Posts: 1,095
#5: Jun 23 '09

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
Familiar Sight
 
Join Date: Nov 2007
Posts: 244
#6: Jun 27 '09

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!
Familiar Sight
 
Join Date: Nov 2007
Posts: 244
#7: Jun 27 '09

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.
omerbutt's Avatar
Needs Regular Fix
 
Join Date: Nov 2006
Location: Earth Obviously :P
Posts: 344
#8: Jun 27 '09

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
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,947
#9: Jun 27 '09

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