?
Solved

Mozilla printing with no dialog box

Posted on 2004-03-30
4
Medium Priority
?
487 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

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

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

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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…
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.:
Suggested Courses
Course of the Month13 days, 12 hours left to enroll

800 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