473,320 Members | 2,110 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,320 software developers and data experts.

-> Printing PDF files? <-

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
4 1960
"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
>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
..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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: bearclaws | last post by:
I am looping through a list of categories and want to display the list horizontally (instead of vertically). I want to create a single row with 4 list items in each cell of the row. I thought...
10
by: Dieter Salath? | last post by:
Hi, in our webpage, a user could open a windows explorer to his temp directory with a simple link and usage of the file protocol: <a href="file://C:\temp" target="_blank">C:\temp</a> This...
2
by: ANaiveProgrammer | last post by:
Hi all I have been trying to send a struct over socket. I tried to assign the values of struct to unsigned char array. I have attached both .c files at the bottom. 'Client.c' takes a struct,...
7
by: Rocky Moore | last post by:
I have a web site called HintsAndTips.com. On this site people post tips using a very simply webform with a multi line TextBox for inputing the tip text. This text is encode to HTML so that no...
5
by: Jay A. Moritz | last post by:
Error: The dependency '<my dll>' in project '<my project>' cannot be copied to the run directory because it would conflict with dependency '<my dll>'. I am getting a dependency error building...
7
by: Old Wolf | last post by:
On one particular compiler, this program fails to compile because memset is an undeclared symbol (it's in namespace std but not in the global namespace): #include <cstring> #include <string.h>...
1
by: sklett | last post by:
I just noticed the other day that I had almost 100k *.log files in the root of my system drive. They all had a guid for a filename and were all 0 bytes in size. I narrowed the problem down to one...
2
by: xhe | last post by:
I met a very headache problem in javascript, I think this might be difference between IE and NS / Safari. I have a text area <form> <textarea name='tex1' onkeyup='displayit();'></textarea>...
4
by: mark4asp | last post by:
I have an element, report which contains tags which have been transformed. E.g. <pis &lt;p&gt <myXml> <report>This text has html tags in it.&lt;p&gt which but <has been changed to &lt;&gt</report>...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.