Solved

Mozilla printing with no dialog box

Posted on 2004-03-30
4
477 Views
Last Modified: 2013-12-15
I have a need to print some web pages from mozilla without the print dialog box showing up. Preferably just click a graphic button that I place on a web page and the page gets sent directly to the printer. I am runnning Red Hat 9. Please Help.

Thanks
Cal
0
Comment
Question by:calzone
4 Comments
 
LVL 17

Expert Comment

by:owensleftfoot
Comment Utility
" I have a need to print some web pages from mozilla without the print dialog box showing up."

Um, could you explain why? The reason I ask is that there really isnt any reason why mozilla programmers would implement this feature. Perhaps you have a problem which actually requires a different solution? If you dont the answer is - download the mozilla source code and program your own features, or pay a programmer to do it.
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
Comment Utility
You can add JavaScript to print a page, but it will always display the print dialog. Printing without confirmation has two problems:
You would receive advertisements printed directly on your printer. No more pop-up adds, they would directly be printed. Not something I would appreciate very much...
Also, you assume that you only have one printer. I have multiple print queues to multiple printers. Most of the time when I "print" a web page, I just convert it to PDF and store it, other times I actually need a paper copy, so I select a real printer. Your mechanism to automatically print would not be able to give me this choice.
So, printing automatically without a confirmation dialog may seem like a good idea, but if you think about the implications, it's not.
0
 

Author Comment

by:calzone
Comment Utility
Sorry, I should have explained myself better. I am using mozilla on a self contained kiosk for the purpose of displaying a few web applications. The user will not have access to the outside web world. There will be no popups and a single printer to which printing will occur. Thank you both for your input. I actually did end up solving this problem yesterday. I was able to alter one of Mozilla's .js files inside of one of the .jar files. I added a few lines of code and it works like a charm.

Calvin
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
Comment Utility
Closed, 400 points refunded.
Netminder
Site Admin
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now