By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,636 Members | 2,299 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,636 IT Pros & Developers. It's quick & easy.

-> Printing PDF files? <-

P: n/a
Hi,

I'm using fpdf to create a report in PDF.

Now the problem is that I want to print it directly to the
client's default printer, with no intervention from the user.

Is this possible?

The problem of having the PDF file displayed in the browser's
plug-in is that:
- it lets the user change the scaling
- the user may use the browser print button instead of Acrobat
- the user will close the window thinking it's closing Acrobat
but actually closes the application itself.

I'm ready to switch to any other PDF engine/tool, including
commercial ones, if it can ease the printing process.

Thanks for any help
Sincerely,
Steve JORDI

(Remove the K_I_L_LSPAM from my email address)
------------------------------------------------
1197 Prangins Email: st*******************@hotmail.com
Switzerland WWW: www.sjordi.com
------------------------------------------------
Volcanoes at www.sjordi.com/volcanoes
MovieDB at www.sjmoviedb.com
------------------------------------------------
Jan 25 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"Steve JORDI" <st*******************@hotmail.comwrote in message
news:nt********************************@4ax.com...
Hi,

I'm using fpdf to create a report in PDF.

Now the problem is that I want to print it directly to the
client's default printer, with no intervention from the user.

Is this possible?
[snip]

I certainly hope not!

Would you want to visit a site that uses your printer
without asking? Besides, what if they have no default
printer or that it's out of ink or that it has labels loaded,
or ...

If you have specific printing needs then inform your
users. Also, open up the PDF file in a new window.
Jan 25 '07 #2

P: n/a
>I certainly hope not!
Would you want to visit a site that uses your printer
without asking?
You're right, I have to agree with that.

>Besides, what if they have no default printer or that
it's out of ink or that it has labels loaded, or ...
Then Windows print manager would inform the user, just like
any other printout.
>If you have specific printing needs then inform your
users. Also, open up the PDF file in a new window.
Yes, that's the hard way. Let the user close the window
so he will learn not to close it after three times to avoid
login again in the application :-)

Well the direct printing problem seems to be related to the
pdf file which is on the server side and the printing method
on the client side.
Sincerely,
Steve JORDI

(Remove the K_I_L_LSPAM from my email address)
------------------------------------------------
1197 Prangins Email: st*******************@hotmail.com
Switzerland WWW: www.sjordi.com
------------------------------------------------
Volcanoes at www.sjordi.com/volcanoes
MovieDB at www.sjmoviedb.com
------------------------------------------------
Jan 25 '07 #3

P: n/a
..oO(Steve JORDI)
>>If you have specific printing needs then inform your
users. Also, open up the PDF file in a new window.

Yes, that's the hard way. Let the user close the window
so he will learn not to close it after three times to avoid
login again in the application :-)
Of course opening a new window for a PDF will cause a new problem for
users without a PDF plugin - they will get a download dialog _and_ a
useless empty browser window ...

What about a simple link?

<a href="document.pdf">title (PDF, xx KB)</a>

Works always and lets the user decide what to do.

Micha
Jan 25 '07 #4

P: n/a
I can make sure they have the Acrobat Reader plug-in,
that won't be a problem.
My concern is about having them change the scaling options
in the print dialog box and the necessity for them to actually
have to print the document manually.

I'm coming from C++ and I enjoyed having reporting tools that
could print transparently in the background...

Steve

Sincerely,
Steve JORDI

(Remove the K_I_L_LSPAM from my email address)
------------------------------------------------
1197 Prangins Email: st*******************@hotmail.com
Switzerland WWW: www.sjordi.com
------------------------------------------------
Volcanoes at www.sjordi.com/volcanoes
MovieDB at www.sjmoviedb.com
------------------------------------------------
Jan 25 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.