?
Solved

Printing without confirmation dialog

Posted on 2006-11-10
5
Medium Priority
?
269 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 2000 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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…
Suggested Courses

750 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