Solved

Mozilla printing with no dialog box

Posted on 2004-03-30
4
482 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
ID: 10727849
" 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
ID: 10731421
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
ID: 10740661
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
ID: 10791216
Closed, 400 points refunded.
Netminder
Site Admin
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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 …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

839 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