Solved

Printing without confirmation dialog

Posted on 2006-11-10
5
259 Views
Last Modified: 2012-08-14
I'm building a web application that needs to automatically print out a form when a certain page is loaded.  I've found a bazillion references to printing without the confirmation dialog, but IE6 with SP2 has closed up that hole.

The good news is that the web page is only ever going to print off on one computer ever and I have access to that computer.  I can install anything I want on it and change any preference I want, so this can be a very narrow solution.

So, is there a way that you guys can think of that will let me print without the confirmation dialog?  I just tried this technique (http://www.quirksmode.org/js/print.html) on Netscape 6.2.3 and it still gave me the dialog.

The computers are being ordered through Dell, so I'm assuming that XP with SP2 will automatically be installed on them.
0
Comment
Question by:jerf100699
  • 2
  • 2
5 Comments
 
LVL 14

Expert Comment

by:p_partha
ID: 17916271
You can try this coe:

http://www.spaanjaars.com/QuickDocId.aspx?quickdoc=243

or you can try opening word and print it from there

Partha
0
 

Author Comment

by:jerf100699
ID: 17916477
Thanks, but that's the same method I had in the above link.

I can't open word.  I want the page to load, then for the print job to be automatically sent.
0
 
LVL 9

Accepted Solution

by:
alkisg earned 500 total points
ID: 17916737
You may:
1) Put the specific site in the trusted sites zone
2) Call printing as usual
3) Put jscript code that uses SendKeys to automatically press the [OK] button

0
 

Author Comment

by:jerf100699
ID: 17917472
Yup - that did it.  Thanks!
0
 
LVL 9

Expert Comment

by:alkisg
ID: 17917511
Wow, you're good! I didn't have time to write the actual code at the time and I thought you'd ask for details!!! :-)

Regards,
Alkis
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

705 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

18 Experts available now in Live!

Get 1:1 Help Now