473,386 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how to print a pdf or doc file

254 100+
Hi

I want to print a pdf file or doc file when I click the print button it should open the print dialog box
Jun 23 '09 #1
8 3819
Markus
6,050 Expert 4TB
Good luck with that. When you have a question and more information, try again.
Jun 23 '09 #2
mukeshrasm
254 100+
@Markus
could not got what you wanted to say here!
Jun 23 '09 #3
Markus
6,050 Expert 4TB
@mukeshrasm
I couldn't get what you wanted to say either. Explain your question.
Jun 23 '09 #4
dlite922
1,584 Expert 1GB
@mukeshrasm
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
Jun 23 '09 #5
mukeshrasm
254 100+
@dlite922
Hi If you have code please give me!
Jun 27 '09 #6
mukeshrasm
254 100+
@Markus
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.
Jun 27 '09 #7
omerbutt
638 512MB
@Markus
MARKUS you are really around to annoy the people of God :D
Jun 27 '09 #8
Markus
6,050 Expert 4TB
@mukeshrasm
Checkout the javascript window.print() method. PHP cannot print from the browser as it has absolutely nothing to do with it.
Jun 27 '09 #9

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

Similar topics

2
by: Brian Richmond | last post by:
I'm writing a script to upload images along with articles to a directory on the server. I'm developing it offline on my WinXP and Apache 1.3.x laptop and it's working great, but when I move the...
5
by: Dave Smithz | last post by:
Hi There, I have a PHP script that sends an email with attachment and works great when provided the path to the file to send. However this file needs to be on the same server as the script. ...
1
by: Franky | last post by:
hi, can i printer a file in the printer selected by the user???
1
by: DPK | last post by:
Hi Friends ! I have a file named "File.xls". I have to give it for printing through the VB. So can someone give me Idea or a brief of source.. Thanks for any suggestion !!!
3
by: padma31 | last post by:
Hi I have a file pointer which is pointing to a file in the physical disk. Now I wanted to know which file it is pointing to. Is there a way to print it using file pointer. Regards Padma
1
xtianixm
by: xtianixm | last post by:
i know using shellexecute will do. but how about i create a file "print.file". when i used shellexecute it doesnt print directly..can anyone help me on this..how can i print a file with an...
2
by: tgiles | last post by:
Hi, All! I started back programming Python again after a hiatus of several years and run into a sticky problem that I can't seem to fix, regardless of how hard I try- it it starts with tailing a...
1
by: Nortas | last post by:
Hi!! I'm new in c# I have this: PrintDocument pd = new PrintDocument(); pd.PrintPage += new PrintPageEventHandler(this.PrintPageEvent); pd.Print(); And i have a file myFile.something How...
8
drhowarddrfine
by: drhowarddrfine | last post by:
I have a simple VBScript that goes on the 'net, fetches a page from a specific URL, and prints it on the default printer. The problem is I need that page to print on the secondary printer. VBScript...
7
Srijith B
by: Srijith B | last post by:
I am trying to print file information using ffmpeg tool in perl Here is my code use strict; use warnings; use IPC::Open3; # example
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.