Solved

Mozilla printing with no dialog box

Posted on 2004-03-30
4
485 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

688 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