Print Without Prompt

This is a discussion on "Print Without Prompt" within the JavaScript Forum section. This forum, and the thread "Print Without Prompt are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 6th, 2007, 16:09
New Member
Join Date: Aug 2007
Location: UK
Age: 24
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Print Without Prompt

Is it possible to use the print without prompt script using IE7? I run an intranet and would like an invoice to print off after an order has been placed. It works, but obviously prompts the user each time, so i was hoping for a work around just to print the info without a prompt? Ive found a couple of scripts that apparently work, but i keep getting errors. Ive put the code i found below. Any help would be appreciated.
Code: Select all
<html>
<head>
<title>Print Test</title>
<script>
function Print()
{
if (document.all) 
{
WebBrowser1.ExecWB(6, 6) //use 6, 1 to prompt the print dialog or 6, 6 to omit it; 
WebBrowser1.outerHTML = "";
}
else
{
window.print();
}
}
</script>
</head>
<body>
<object ID="WebBrowser1" WIDTH="0" HEIGHT="0" 
CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"> 
</object>
<A HREF="#" onClick="Print()">Print this page</a>
</body>
</html>

Last edited by karinne; Sep 6th, 2007 at 16:22. Reason: Please use [ code ]...[ /code ] tags when displaying code.
Reply With Quote

  #2 (permalink)  
Old Sep 6th, 2007, 17:24
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Print Without Prompt

i'm pretty sure it's not.
since your on a network, there may be some workaround seeing as your in control
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #3 (permalink)  
Old Sep 7th, 2007, 10:34
Up'n'Coming Member
Join Date: Aug 2007
Location: Bicester
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Print Without Prompt

Hi Chris

I think this does it; http://www.meadroid.com/scriptx/index.asp

There is a lite free version.

It's an ActiveX control which you embed on the page and script

Justin
Reply With Quote
Reply

Tags
print, prompt, without

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Login prompt when not called EXDunk Flash & Multimedia Forum 0 Feb 26th, 2007 20:37
IE Print issue moojoo Web Page Design 11 Sep 29th, 2006 09:16
print from my website dber Web Page Design 7 Jun 24th, 2006 22:54
css - print and screen? cyberpac9 Web Page Design 0 Jan 3rd, 2006 20:45
Print ClaireB JavaScript Forum 2 Sep 9th, 2005 18:52


All times are GMT. The time now is 22:31.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43