bypass or supress print dialog box<p>Hi!</p> <p>I'm developing this web aplication for an intranet where the user can print a list, I want this to be automatic, I know I can do so by using a java script, but then I was asked to avoid the browser to show the printer dialog box so the printing process would be much more faster and easier for the user; I found some info about this in a forum (<a title="http://www.codingforums.com/archive/index.php?t-224.html" href="http://www.codingforums.com/archive/index.php?t-224.html">http://www.codingforums.com/archive/index.php?t-224.html</a>) and I understand that acording to this site what I want could be posible in former os and ie versions but not in the new ones with updates (and I understand why). My cuestion is; Is it true that supressing or bypassing the printer dialog box by an script isn't posible? and if so maybe someone can point me out to a ms oficial article related to this (as I must prove what I was asked isn't posible) for I've looked within this site and I haven't been able to find anything related (Maybe I haven't looked enough... :P). Thanks</p>© 2009 Microsoft Corporation. All rights reserved.Thu, 02 Apr 2009 00:34:54 Z86eaeda9-c868-4d20-95b8-3b9bc2e19cc6http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#86eaeda9-c868-4d20-95b8-3b9bc2e19cc6http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#86eaeda9-c868-4d20-95b8-3b9bc2e19cc6chuy244http://social.msdn.microsoft.com/Profile/en-US/?user=chuy244bypass or supress print dialog box<p>Hi!</p> <p>I'm developing this web aplication for an intranet where the user can print a list, I want this to be automatic, I know I can do so by using a java script, but then I was asked to avoid the browser to show the printer dialog box so the printing process would be much more faster and easier for the user; I found some info about this in a forum (<a title="http://www.codingforums.com/archive/index.php?t-224.html" href="http://www.codingforums.com/archive/index.php?t-224.html">http://www.codingforums.com/archive/index.php?t-224.html</a>) and I understand that acording to this site what I want could be posible in former os and ie versions but not in the new ones with updates (and I understand why). My cuestion is; Is it true that supressing or bypassing the printer dialog box by an script isn't posible? and if so maybe someone can point me out to a ms oficial article related to this (as I must prove what I was asked isn't posible) for I've looked within this site and I haven't been able to find anything related (Maybe I haven't looked enough... :P). Thanks</p>Wed, 21 Feb 2007 19:34:32 Z2008-06-19T00:01:50Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#5a05634a-3553-457d-9338-34b375e6a872http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#5a05634a-3553-457d-9338-34b375e6a872tipster8http://social.msdn.microsoft.com/Profile/en-US/?user=tipster8bypass or supress print dialog box<p>Hi chuy244!  I'm looking for the same information.  Have you found anything yet?</p> <p>Thanks.</p>Wed, 13 Jun 2007 13:44:54 Z2007-06-13T13:44:54Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#dd7e00a2-d6c2-47ad-b610-95c21ae0d8b3http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#dd7e00a2-d6c2-47ad-b610-95c21ae0d8b3unique_usernamehttp://social.msdn.microsoft.com/Profile/en-US/?user=unique_usernamebypass or supress print dialog boxAs a developer, AND a user, I personally HATE this behavior (skipping the print dialog).<br><br>This is my #1 annoyance with MS Word, thank goodness most applications didn't follow suit.<br><br>I typically have access to at least 4, if not more printers... plus the ability to print to a file, or a PDF.<br><br>If I don't get the opportunity to pick: (a) what printer, (b) what paper size, (c) what orientation, (d) what scale, (e) color vs. black &amp; white, and (f) what print quality, I get very upset.<br><br>These are user options and preferences.  Unless you have a very good reason to avoid uses choosing these options, please do not remove the users choice.<br><br>In IE7 now, there is at least the option to do a proper preview/scale/rotation... it's only minor progress, but it beats the heck out of what IE6 provided.<br><br>Steve<br>Wed, 13 Jun 2007 14:35:34 Z2007-06-13T14:35:34Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#beebf241-031e-4de8-969e-7d4b490765c3http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#beebf241-031e-4de8-969e-7d4b490765c3tipster8http://social.msdn.microsoft.com/Profile/en-US/?user=tipster8bypass or supress print dialog boxYes, I would find it annoying too.  Unfortunately our clients want this behavior in our web application.  From my research so far, it seems I can't do this with javascript alone.  I was wondering if it would be possible to do this with an ActiveX control?  Any suggestions?Wed, 13 Jun 2007 15:41:51 Z2007-06-13T15:41:51Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#5f571a20-dd3c-4560-a7d1-8dbb3fc7f1adhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#5f571a20-dd3c-4560-a7d1-8dbb3fc7f1adchuy244http://social.msdn.microsoft.com/Profile/en-US/?user=chuy244bypass or supress print dialog boxThanks for the comments, I understand what you say, but yes... I do have a good reason to skip the print dialog box, as the app I'm developing is intented for internal use at my company and users (we suppose) will find the app much more friendly if this step is avoided. So far I haven't been able to find anything related (not even an article stating this is really imposible). I'll keep on my quest... <img height=19 alt="Stick out tongue" src="http://forums.microsoft.com/MSDN/emoticons/emotion-4.gif" width=19>Fri, 15 Jun 2007 14:53:13 Z2007-06-15T14:53:13Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#8c029afe-a5e0-4e2e-ab5e-4fca08c9ddd7http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#8c029afe-a5e0-4e2e-ab5e-4fca08c9ddd7Tech-Edhttp://social.msdn.microsoft.com/Profile/en-US/?user=Tech-Edbypass or supress print dialog box<p>MeadCo ScriptX will do it, but it comes at a price: $599</p> <p>If you're willing to pay, it does exactly what you're looking for: <a title="http://www.meadroid.com/scriptx/docs/samples/techie.asp" href="http://www.meadroid.com/scriptx/docs/samples/techie.asp">http://www.meadroid.com/scriptx/docs/samples/techie.asp</a></p> <p> </p> <p>But, I wish SOMEONE would let us know how we can do this without paying so much.  Does anyone know if Microsoft built anything like this in?</p>Sat, 16 Jun 2007 00:03:34 Z2007-06-16T00:03:34Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#1ebff10a-b0d1-4525-8d3c-1a3e7721ab3chttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#1ebff10a-b0d1-4525-8d3c-1a3e7721ab3csdangelohttp://social.msdn.microsoft.com/Profile/en-US/?user=sdangelobypass or supress print dialog boxVersion of Word 2003 will bypass the print box. Version of Word 2000 will not bypass print box. I am trying to find how to bypass in Word 2000.Fri, 20 Jul 2007 18:35:30 Z2007-07-20T18:35:30Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#9f06707a-c7eb-4d88-a1a4-12d813285677http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#9f06707a-c7eb-4d88-a1a4-12d813285677IECUSTOMIZERhttp://social.msdn.microsoft.com/Profile/en-US/?user=IECUSTOMIZERbypass or supress print dialog box<p>Hi All,</p> <p> </p> <p>IE7 supports window.print() as opposed to the earlier versions support for printing using the webbrowser object and the ExecWB method. Window.print() loads the printer selection dialog before spooling the document to the selected Printing device. The ExecWB method of printing requires the setting 'Allow scripting of the Web Browser' to be enabled in IE7. An untried suggestion would be to load the document to be printed in a hidden window (top -1000, left -1000) and to place the window.print() script in the documents onload event. I think this method may be defeated by a users popup blocking settings security settings for scripted windows.</p> <p> </p> <p>You may get some ideas looking at the printto context menu handler for HTML file types in the shell file type handlers...</p> <p> </p> <p>rundll32.exe c:\windows\system32\mshtml.dll, PrintHTML &quot;%1&quot; &quot;%2&quot; &quot;%3&quot; &quot;%4&quot;</p> <p> </p> <p>You could call the above command using Windows Scripting, or you may like to look at creating a custom protocol handler that could be installed on your clients' workstations enabling a hyperlink protocol (for example) like href=&quot;printto<img height=19 alt="Big Smile" src="http://forums.microsoft.com/MSDN/emoticons/emotion-2.gif" width=19>efaultPrinterName&amp;Document=ClientReport.aspx&quot;</p> <p> </p> <p>You can use windows scripting from within a web document by using javascripts' ActiveXObject method...</p> <p> </p> <p>var sURL = document.location.href;</p> <p>var WshShell = new ActiveXObject(&quot;wscript.shell&quot;);</p> <p>WshShell.run(&quot;rundll32.exe c:\windows\system32\mshtml.dll, PrintHTML &quot; + sURL); // look up the optional arguments to the run method... wait etc.</p> <p> </p> <p>But this will have covenants depending upon the security zone where your web document resides. (hint: MTW=Mark of the Web)</p> <p> </p> <p>I personally would try the custom protocol handler route, though I think you are asking for trouble if you do not give the user intervention in the printer selection process. How will you support events like the printer running out of paper or a network connection being down.... whats the old saying(?), if it can happen then it will happen... (sic... I am getting old. I've forgotten who said that quote).</p> <p> </p> <p>Regards.</p> <p> </p> <p>Regards.</p> <p> </p> <p> </p>Mon, 23 Jul 2007 04:46:49 Z2007-07-23T04:46:49Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#23084e89-17a4-43a2-8dec-9725e36f059fhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#23084e89-17a4-43a2-8dec-9725e36f059fjleslie48http://social.msdn.microsoft.com/Profile/en-US/?user=jleslie48bypass or supress print dialog box<div class=quote> <table width="85%"> <tbody> <tr> <td class=txt4> <strong>unique_username wrote:</strong></td></tr> <tr> <td class=quoteTable> <table width="100%"> <tbody> <tr> <td class=txt4 valign=top width="100%">As a developer, AND a user, I personally HATE this behavior (skipping the print dialog).<br><br>This is my #1 annoyance with MS Word, thank goodness most applications didn't follow suit.<br><br>I typically have access to at least 4, if not more printers... plus the ability to print to a file, or a PDF.<br><br>If I don't get the opportunity to pick: (a) what printer, (b) what paper size, (c) what orientation, (d) what scale, (e) color vs. black &amp; white, and (f) what print quality, I get very upset.<br><br>These are user options and preferences. Unless you have a very good reason to avoid uses choosing these options, please do not remove the users choice.<br><br>In IE7 now, there is at least the option to do a proper preview/scale/rotation... it's only minor progress, but it beats the heck out of what IE6 provided.<br><br>Steve<br></td></tr></tbody></table></td></tr></tbody></table></div><br><br><br>Well thats all well and good for you but as a developer who actually has to develop for actual people some of us need to can the print option. So the original question still stands. <br><br>My customer wants a simple button on his html page that he simply pushes, and out of his printer pops a single sheet of paper, with exactly the information he wants printed. In his case he wants the first page (and only the first page) of the html page where the print button is on. He wants it printed in landscape, and on the default printer. He does not want to have to click on &quot;OK&quot; in the print dialog box, or change any of the settings in the print dialog box. He knows full well that he can do this by pushing ALT-F P... and clicking all the settings he wants. He wants a one button push. <br><br>So is their a way I can set all the answers/options that the print dialog box asks and push that stupid OK button so the dialog box never comes up or not???<br><br><br>Mon, 23 Jul 2007 16:13:01 Z2007-07-23T16:13:01Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#fb11e580-f27e-4f6c-8fe2-282875a40c4ahttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#fb11e580-f27e-4f6c-8fe2-282875a40c4aIECUSTOMIZERhttp://social.msdn.microsoft.com/Profile/en-US/?user=IECUSTOMIZERbypass or supress print dialog box<p>Hi,</p> <p> </p> <p>I hope they are paying you by the hour. We have all had problem clients that request functionallity that may appear simplistic and menial to them ( I want my web site to work on all browsers!), but which are outside the norm or for the effort required do no justify the return. Which is all well and good so long as you get paid for your efforts.</p> <p>The simple answer is that there is no web page scripting that will bypass the printer selection dialog, and you will have to look at a custom browser extension to find a solution.</p> <p> </p> <p>Some third-party extensions that come to mind are snagit and pdfcreator. These have options to print the currently displayed web page. They may be programmable which would allow you to script them in your web pages.</p> <p> </p> <p>I hope that when you do find a solution, your client does not phone you up to complain that it is not working, only to find that the printer power plug has been has been knocked out by the cleaner. All good if they are willing to pay.</p> <p> </p> <p>Regards.</p>Mon, 23 Jul 2007 20:17:17 Z2007-07-23T20:17:17Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#f4a226c6-5c6c-45d6-be23-6bd7ba6aff1fhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#f4a226c6-5c6c-45d6-be23-6bd7ba6aff1fchuy244http://social.msdn.microsoft.com/Profile/en-US/?user=chuy244bypass or supress print dialog box<p>Thank's for your comment IECUSTOMIZER, at least now I know where not to keep looking... <img height=19 alt="Stick out tongue" src="http://forums.microsoft.com/MSDN/emoticons/emotion-4.gif" width=19>... I'll take a deeper look at what you say on your past comment and I hope I can find something.... and by the way... no, they are not paying by the hour (maybe that is why it's been so long since I've posted the question and I'm still looking... <img height=19 alt="Stick out tongue" src="http://forums.microsoft.com/MSDN/emoticons/emotion-4.gif" width=19>).. but although I know what kind of request I've been asked I'll try (as far is reasonable) to give a solution. If I find something... for sure I'll post it here (as far it's is an addecuate and ethical solution ofcourse... <img height=19 alt="Stick out tongue" src="http://forums.microsoft.com/MSDN/emoticons/emotion-4.gif" width=19>)</p>Mon, 23 Jul 2007 21:47:23 Z2007-07-23T21:47:23Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#1742a7e8-cddc-4a96-9c3a-023947801f57http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#1742a7e8-cddc-4a96-9c3a-023947801f57anunohttp://social.msdn.microsoft.com/Profile/en-US/?user=anunobypass or supress print dialog box<p>Hi,</p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:Arial">Usually user should have full control of printer devices. However I think you are not aware of other situations where user should not be able to do so!!!<br>This affirmation sounds like a heresy compared with your text, but following are situations I found with my customers:</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt 36pt;text-indent:-18pt;tab-stops:list 36.0pt"><span style="font-size:10pt;font-family:Arial"><span style="">a)<span style="font:7pt 'Times New Roman'">       </span></span></span><span style="font-size:10pt;font-family:Arial">Print bar codes to a text printer with labels (User should not select another printer other then that);</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt 36pt;text-indent:-18pt;tab-stops:list 36.0pt"><span style="font-size:10pt;font-family:Arial"><span style="">b)<span style="font:7pt 'Times New Roman'">      </span></span></span><span style="font-size:10pt;font-family:Arial">Printing small text messages (2 to 6 lines) to a printer with continuous paper, so user could cut a small strip of paper with each message. Otherwise a full paper sheet would be need.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:Arial">I am still looking for a solution of this problem, since my customer wants to send output to the printer using only a click and in the quickest way.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:Arial">In those situations, print dialog is annoying user and not helping him.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:Arial"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:Arial">Even using print dialog I could not found a way to get the result of user selection (“Print” or “Cancel”). </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:Arial">I am using Java comand <span style=""> </span>“document.execCommand(&quot;Print&quot;);</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:Arial"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:Arial">Did some one have a solution to get user selection from Print Dialog?</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:Arial"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:Arial">Thank you,</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:10pt;font-family:Arial"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:10pt;color:navy;font-family:Arial">Regards,</span></p> <p align=left> <p align=left> </p> <p align=left><font face=Arial size=2>Antonio Nuno</font></p> <p></p>Wed, 24 Oct 2007 00:06:12 Z2007-10-24T00:06:12Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#c64b1c02-d229-4c46-bc5b-7a9ebe3c3ebfhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#c64b1c02-d229-4c46-bc5b-7a9ebe3c3ebfunique_usernamehttp://social.msdn.microsoft.com/Profile/en-US/?user=unique_usernamebypass or supress print dialog boxIf you have a customer that specifically wants this behavior, then by all means apply it where appropriate.<br><br>I would suggest either an Extension that presumably has some sort of higher priveleges, and you can enforce more appropriate logic...<br><br>or<br><br>(kind of hacky) create a tool that &quot;sniffs&quot; for an IE print dialog, matching your needs and specific pages.  AutoHotKey has the ability to jump in here, and automatically hide the print dialog, make certain selections, and send the print job to the given printer.<br><br>For any case outside of these specific scenarios, I would let the user pick what they want.<br><br>PS Although I recommend the extension approach, I have no expertise in building extensions for IE (only Firefox), thus I'm afraid I can't assist.<br><br>Good Luck<br><br>Wed, 24 Oct 2007 13:16:56 Z2007-10-24T13:16:56Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#7240befb-d9ed-4d60-9aeb-15c90b1415abhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#7240befb-d9ed-4d60-9aeb-15c90b1415abchuy244http://social.msdn.microsoft.com/Profile/en-US/?user=chuy244bypass or supress print dialog boxunique_username: thanks for the info...<br><br> So far we've triede the extension aproach, but we haven't been able to achieve exactly what we need as there's more to the problem as we intend to run the app on thin clients (but that's another thing). You mention something about AutoHotKey what's that exactly?<br>Thu, 25 Oct 2007 14:55:40 Z2007-10-25T14:55:40Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#e03530bd-fa53-4357-96f4-c433022e81f7http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#e03530bd-fa53-4357-96f4-c433022e81f7abbasi541http://social.msdn.microsoft.com/Profile/en-US/?user=abbasi541bypass or supress print dialog boxhi all,<br>we have same problem and looking for a solution,  we want to find a solution like http://print.coupons.com has implemented to print coupons. If someone have any idea about that please do inform at this thread.<br>with Best Regards<br>abbasi541Mon, 12 Nov 2007 19:32:42 Z2007-11-12T19:32:42Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#3b3cc511-2201-4939-a0f6-88d1ae4fea00http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#3b3cc511-2201-4939-a0f6-88d1ae4fea00unique_usernamehttp://social.msdn.microsoft.com/Profile/en-US/?user=unique_usernamebypass or supress print dialog boxchuy244,<br><br>Hmm, if you are going for a pure thin-client (e.g. just the end user's browser) I don't know if I have anything that can help.<br><br>As for the AutoHotKey, http://www.autohotkey.com/ it is a cool little scripting language that you _can_ compile into an executable.  It is designed to do quick automation via hotkeys, but grew into an all purpose windows based script/gui tool.<br><br>E.g. you can write a quick script/app to say... &quot;WHEN IE is the active application, AND the window title contains &quot;your site name&quot;, THEN watch for the Print dialog... if it pops (within 2 seconds) of IE losing focus, SEND KEYS/Click buttons X, Y, Z.<br><br>It's not perfect, but it can be a really helpful tool in certain scenarios (like when automatic updates installs new stuff, but you don't want to reboot right now (or in 20min when it reminds you, or in 40min, etc.)... (you just tell it to dismiss the dialog)<br><br>It would be a bit of a stretch for what you are looking for I think.<br><br>You may be better off with a Print2PDF printer added to the user's system, then have an ActiveX or something automate the print job.<br><br>You may also want to check out Flash... they may have some auto-print option that you can hook into?<br>Mon, 12 Nov 2007 21:24:07 Z2007-11-12T21:24:07Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#54651e28-9108-4e48-8db2-1e16e911b493http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#54651e28-9108-4e48-8db2-1e16e911b493Mahesh Chandhttp://social.msdn.microsoft.com/Profile/en-US/?user=Mahesh%20Chandbypass or supress print dialog box<p align=left><font face=Arial size=2>I am also looking for same solution where my client wants to print a Web page direct to a network printer without showing the PrintDialog.</font></p> <p align=left> </p> <p align=left>Any help appreciated.</p> <p align=left> </p> <p align=left>Thanks,</p> <p align=left>Mahesh</p>Wed, 30 Jan 2008 18:02:13 Z2008-01-30T18:02:13Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#ff5f7d7f-c7bd-44b6-a0e9-8f70e4f34a3bhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#ff5f7d7f-c7bd-44b6-a0e9-8f70e4f34a3bchuy244http://social.msdn.microsoft.com/Profile/en-US/?user=chuy244bypass or supress print dialog boxHi all...!! Well it's solved... (i guess) the thing is we had some development company to come up with a solution and they gave us back this exe file wich is a script (i guess something like IECUSTOMIZER whas suggesting). When  running, this script/program will skip any print dialog box from any aplication such IE or Wordo or anything... as we intent to run only the web browser on a thin client this is ok. I don't really know how this exe file works I'm just guessing the aproach taken. But gues what!!! in the end my boss didn't like it. We took another aproach... now we used Firefox and skipin' the dialog box is really simple with this browser (sorry to say it in this forum.. <img alt="Stick out tongue" src="http://forums.microsoft.com/MSDN/emoticons/emotion-4.gif">). here's how to do it! http://www.asktheadmin.com/2007/12/in-firefox-how-can-i-print-to-my_01.html.<br><br>Hope this is of help.<br>Thu, 31 Jan 2008 16:52:57 Z2008-06-19T00:01:42Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#71b32346-e79a-4a3d-b029-9f8b12ea89f5http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#71b32346-e79a-4a3d-b029-9f8b12ea89f5BarbCordhttp://social.msdn.microsoft.com/Profile/en-US/?user=BarbCordbypass or supress print dialog box<p align=left><font face=Arial size=2>I have the opposite problem, Steve.  When I use file/print, the document in Word 2003 simply prints wthout giving me the options in print dialog box.  It just doesn't appear.  Any help?</font></p>Sat, 09 Feb 2008 18:17:17 Z2008-02-09T18:17:17Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#46af7f0a-ca94-4867-81a9-dee4d37fde51http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#46af7f0a-ca94-4867-81a9-dee4d37fde51unique_usernamehttp://social.msdn.microsoft.com/Profile/en-US/?user=unique_usernamebypass or supress print dialog boxYes.  Don't click the Print Icon in Word - Ever. Unless you like wasting paper.<br><br>In Word, always Print Preview, or Click File &gt; Print...<br><br><br>Now, that said, you might forget sometimes.  If you want, I can whip you up a little app that will ignore clicks on the print button, and call the print dialog up instead! ;-)<br><br>Microsofts design was to make things simple for printing, but I think they confused the home user (with typ. 1 8.5x11 printer) with business users that have 4, 5,6,... 12 printers to choose from.<br><br>Personally, I have an HP Plotter (4 FOOT WIDE) that is my default printer, but DEFINATELY NOT where I want my Word Docs to print to.<br><br>Anyway, if you want the application, just let me know what ver of Office you have. 2000, 2003, etc.<br>Wed, 13 Feb 2008 22:17:36 Z2008-02-13T22:17:36Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#a7175c08-55be-4a0a-ac17-d030343aa10dhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#a7175c08-55be-4a0a-ac17-d030343aa10dSafetyManhttp://social.msdn.microsoft.com/Profile/en-US/?user=SafetyManbypass or supress print dialog box<p align=left><font face=Arial size=2>As many people on many websites have mentioned. Client Side printing (w/o) a dialog box popping up is not allowed in IE7, no matter what you do to disable it.  I even tried adjusting the security settings in IE7 to &quot;allow scripting of Internet Explorer web browser control&quot;= Enable.  and it still gave me the popup when I tried to print using java-script.</font></p> <p align=left> </p> <p align=left>YES it does appear to work in previous browser versions.</p> <p align=left> </p> <p align=left>So as last resort I found a piece of software (That you have to install as an active-X) control on the client.  But it seems to be the trick I have been looking for. </p> <p align=left> </p> <p align=left>Costs are about $500 for mulitple URLS.</p> <p align=left> </p> <p align=left> </p><span lang=EN> <p>HERE is the only active-x control I have found which will provide/print this type of</p> <p>functionality</p> <p><a title="http://www.meadroid.com/scriptx/docs/printdoc.asp#examples" href="http://www.meadroid.com/scriptx/docs/printdoc.asp#examples">http://www.meadroid.com/scriptx/docs/printdoc.asp#examples</a></p> <p align=left> </p> <p align=left>I personally have not written or tested the controls.  But I plan too.</p> <p align=left> </p> <p align=left>We are trying to convert a point of sale application into a browser based application. So that client can be transported to just about any machine with minimal installation requirements.</p> <p align=left> </p> <p align=left>To note: we need to print to a receipt printer and also and ID Card printer with very specific printer properties and requirements of what is printed to the printers.  Much Like a Point of Sale Application (POS).</p> <p align=left> </p> <p align=left>REFERENCE:</p> <p align=left>Doug Lubey of Louisiana</p> <p align=left><a title="http://www.DougLubey.com" href="http://www.DougLubey.com">www.DougLubey.com</a></p> <p align=left></span> </p> <p align=left> </p> <p align=left> </p> <p align=left> </p> <p align=left>SEARCH ENGINE REFERENCE:</p> <p align=left>printer dialog box popup</p><span lang=EN> <p>browser disable printer dialog box</p> <p>internet explorer disable printer dialog box</p> <p>internet explorer 7 disable printer dialog box</p> <p>internet explorer 7 disable printer dialog box automatically print</p> <p>internet explorer 7 disable printer dialog box automatically print ExecWB</p> <p>IE7 disable printer dialog box automatically print ExecWB</p> <p>IE7 suppress printer dialog box automatically print ExecWB</p> <p>IE7 suppress printer dialog box</p> <p>print a webpage and suppress the printer dialog box</p> <p>internet explorer 7 suppress printer dialog box for printing documents</p> <p>Internet Explorer 7 printer dialog box</p> <p>Internet Explorer 7 printer dialog prompt</p> <p>internet explorer 7 supress printer dialog box</p> <p>asp.net avoid printer dialog box using internet explorer print directly to printer</p> <p>asp.net avoid printer dialog box internet explorer</p> <p>asp.net avoid print window internet explorer</p> <p>internet explorer 7 printer dialog box suppress</p><span lang=EN> <p>javascript printing disable print dialog box</p></span></span><span lang=EN> <p>CAN NOT DISABLE THE PRINTER DIALOG BOX. using javascript.</p><span lang=EN> <p>javascript printing</p><span lang=EN> <p>client side form and printing of documents to a specific printer</p><span lang=EN> <p>client side format and printing of documents to a specific printer</p></span></span></span></span>Mon, 09 Jun 2008 19:31:44 Z2008-06-09T19:31:44Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#9fe9f551-66e1-4458-8cdb-e64e7e469480http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#9fe9f551-66e1-4458-8cdb-e64e7e469480CurtisDeHavenhttp://social.msdn.microsoft.com/Profile/en-US/?user=CurtisDeHavenbypass or supress print dialog box<p align=left><font face=Arial size=2>Wow, this thread's lifespan is amazing...</font></p> <p align=left> </p> <p align=left>We too need to print without intervention.  Our application ideally needs to be on a thin client and receives unsolicited messages that need to be printed automatically.  There might not be someone sitting in front of the tube!</p> <p align=left> </p> <p align=left>What frosts me is that there's a print button on the tool bar (Alt-R) that skips the dialog.  So why shouldnt JS have access to that function...  : (</p> <p align=left> </p> <p align=left> </p> <p align=left> </p>Tue, 10 Jun 2008 11:04:56 Z2008-06-10T11:04:56Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#6fa082fc-ad62-41c6-954c-26b872ae105chttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#6fa082fc-ad62-41c6-954c-26b872ae105cSoi xamhttp://social.msdn.microsoft.com/Profile/en-US/?user=Soi%20xambypass or supress print dialog boxIn IE7 with many many search and try to use JS to skips print dialog ---and all of that fail <img height=19 alt=Sad src="http://forums.microsoft.com/MSDN/emoticons/emotion-6.gif" width=19>. <p align=left><font face=Arial size=2>and i think we can't do it with js only.</font></p> <p align=left>I have written a add-on (active-x) to install to IE. And every think easy now. I think you should write a add-on. it easy than you spend a lot of time to search on google. (sorry about my english)</p>Thu, 12 Jun 2008 05:04:48 Z2008-06-12T05:04:48Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#685250c1-f67d-45d4-a688-34ad65d12629http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#685250c1-f67d-45d4-a688-34ad65d12629ariz007http://social.msdn.microsoft.com/Profile/en-US/?user=ariz007bypass or supress print dialog box<p align=left><font face=Arial size=2></font> </p>hi chuy244!Gud day!!!  regarding direct to print in web without displaying the print dialog box. Have u found the solution? I need it so badly. tnx.Wed, 18 Jun 2008 12:00:42 Z2008-06-18T12:00:42Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#8e826213-0cd4-486e-9c87-af67ea64d1edhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#8e826213-0cd4-486e-9c87-af67ea64d1edchuy244http://social.msdn.microsoft.com/Profile/en-US/?user=chuy244bypass or supress print dialog boxariz007:<br><br> I've posted what I think is the solution to this matter. Using IE so far it seams to me that there is no way to bypass or supress the printing dialog box by means of javascripting (and actually I believe this is true for any other browser in their latest versions); however as formerly posted in this thread an activeX or a script/program running on windows can be developed to bypass the printing dialog, actually some users in this thread have posted sites where you can actually buy an exe file that  will do this; here at my company we hired a software developer to write such program charging for it an equivalent of $500.00 dls. we used it and it worked as expected as long the aplication was running on a windows enviroment, but as we planned this application for thin clients we faced many other implications and finally we gave up with this solution.<br><br> Currently, at least for us, this has been solved by using Firefox as the browser for the application. The thin clients we are using, Neoware thin clients running a Linux core called Neolinux, can run a &quot;Firefox snapin&quot; which is kind of a stand alone firefox browser (no OS beside the linux core and no other aplication running on the thin client). Firefox being more costumisable has allowed us to supress the printing dialog in a very simple way that requires only one line in the about:config list (more of how to do this here: http://www.asktheadmin.com/2007/12/in-firefox-how-can-i-print-to-my_01.html). <br><br> So far this is all what I have about this and as for me the problem is solved I won't go any further with finding a way to supress or bypass the printing dialog box on IE.<br>Wed, 18 Jun 2008 16:02:06 Z2008-06-18T16:02:27Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#04781687-463f-4738-94fa-de92fba4472fhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#04781687-463f-4738-94fa-de92fba4472fCurtisDeHavenhttp://social.msdn.microsoft.com/Profile/en-US/?user=CurtisDeHavenbypass or supress print dialog box<p align=left><font face=Arial size=2>Actually for the IE environment there's an ActiveX control that's already part of the OS.  It's free!  <img height=19 alt=Smile src="http://forums.microsoft.com/MSDN/emoticons/emotion-1.gif" width=19></font></p> <p align=left> </p> <p>&lt;script language='VBScript'&gt;<br>Sub Print()<br>       OLECMDID_PRINT = 6<br>       OLECMDEXECOPT_DONTPROMPTUSER = 2<br>       OLECMDEXECOPT_PROMPTUSER = 1<br>       call WB.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER,1)<br>End Sub<br>document.write &quot;&lt;object ID='WB' WIDTH=0 HEIGHT=0 CLASSID='CLSID:8856F961-340A-11D0-A96B-00C04FD705A2'&gt;&lt;/object&gt;&quot;<br>&lt;/script&gt;<br></p> <p align=left>That Sub Print effectively replaces the default print function.  All you then need in Javascript is...</p> <p align=left> </p> <p align=left>window.print();</p> <p align=left> </p> <p align=left>Works like a charm!  </p> <p align=left> </p> <p align=left>I found this solution on the web but I accidentally closed the browser after I implemented it - dont know where I got it...  Thanks to the author though, whoever he/she was!</p> <p align=left> </p> <p align=left>Curt</p> <p align=left> </p>Wed, 18 Jun 2008 17:49:58 Z2008-06-19T00:01:50Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#fe60c733-308e-4122-a2ab-ce441efd8db6http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#fe60c733-308e-4122-a2ab-ce441efd8db6chuy244http://social.msdn.microsoft.com/Profile/en-US/?user=chuy244bypass or supress print dialog box<p align=left><font face=Arial size=2>I'm amazed..!!!!!!!!!!!!!!! wow.......!!!! <img alt=Surprise src="http://forums.microsoft.com/MSDN/emoticons/emotion-3.gif">!! It actually works..!!! (where were you <a id="_ctl0_MainContent__ctl0_PostForm_ReplyPostedBy" href="http://forums.microsoft.com/Forums/User/Profile.aspx?UserID=344196&amp;SiteID=1"><strong><font color="#013da4">CurtisDeHaven</font></strong></a> more than a year ago when I started this thread??... <img height=19 alt="Stick out tongue" src="http://forums.microsoft.com/MSDN/emoticons/emotion-4.gif" width=19>... heheh...) Any way... here you are Ladys and Gentelmen cortesy of <a id="_ctl0_MainContent__ctl0_PostForm_ReplyPostedBy" href="http://forums.microsoft.com/Forums/User/Profile.aspx?UserID=344196&amp;SiteID=1"><strong><font color="#013da4">CurtisDeHaven</font></strong></a> a free ActiveX control that allow you to bypass the printing dialog box on IE I just tested it and works as expected.... I don't get tired of saying it... I'm amazed...!!!!!! I just built a simple webpage with a &quot;Print this&quot; link and I keep clicking it again and again... just to see the document getting to the printer spool and then getting printed (in the same pice of papper of course, gotta save the trees.. <img height=19 alt="Stick out tongue" src="http://forums.microsoft.com/MSDN/emoticons/emotion-4.gif" width=19>). Thanks a lot man... as maybe you noticed I had given up on this... (now I have a new hope.... hehehe... ).</font></p> <p align=left> </p> <p align=left>I have marked the <a id="_ctl0_MainContent__ctl0_PostForm_ReplyPostedBy" href="http://forums.microsoft.com/Forums/User/Profile.aspx?UserID=344196&amp;SiteID=1"><strong><font color="#013da4">CurtisDeHaven</font></strong></a> post as an answere, but I'll leave my post as an answere to as even now that I'm able to skip the printing dialog on IE we won't be getting back to using IE for our App as we have found Firefox (at least for our application) much more convinient and someone else could to.</p>Thu, 19 Jun 2008 00:01:22 Z2008-06-19T00:01:22Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#2bc8ccd0-a47b-4284-aa17-94186eeae152http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#2bc8ccd0-a47b-4284-aa17-94186eeae152IECUSTOMIZERhttp://social.msdn.microsoft.com/Profile/en-US/?user=IECUSTOMIZERbypass or supress print dialog box<p><font size=2>Hi,</font></p> <p align=left> </p> <p align=left>The free ActiveX control is the WebBrowser control!</p> <p align=left> </p> <p align=left>The above script will also work in IE7-8, so long as you have enabled &quot;Enable scripting of the WebBrowser&quot; on the security tab of Internet Options.</p> <p align=left> </p> <p align=left>Regards.</p> <p align=left><font face=Arial size=2></font> </p>Thu, 19 Jun 2008 01:47:51 Z2008-06-19T01:47:51Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#4356c783-724a-4f4f-98f8-b740ba4618b9http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#4356c783-724a-4f4f-98f8-b740ba4618b9CurtisDeHavenhttp://social.msdn.microsoft.com/Profile/en-US/?user=CurtisDeHavenbypass or supress print dialog box<p align=left><font face=Arial color="#555555" size=2><span class=inlineLink>chuy244</span></font></p> <p align=left><font face=Arial color="#555555" size=2><span class=inlineLink></span></font> </p> <p align=left><font face=Arial color="#555555" size=2><span class=inlineLink>Thanks for your support, but again I cannot take credit for the creativity involved in that solution.  My strengths lie in persistence with yahoo/google searches!  As I mentioned I cant find the original link to this solution but I did find one with the exact same source!  Although this one has a bit more comments...  </span></font></p> <p align=left><font face=Arial color="#555555" size=2><span class=inlineLink><strong></strong></span></font> </p> <p align=left><font face=Arial color="#555555" size=2><span class=inlineLink><a title="http://www.internettg.org/newsletter/dec99/print_test.htm" href="http://www.internettg.org/newsletter/dec99/print_test.htm">http://www.internettg.org/newsletter/dec99/print_test.htm</a></span></font></p> <p align=left><font face=Arial color="#555555" size=2><span class=inlineLink></span></font> </p> <p align=left><font face=Arial color="#555555" size=2><span class=inlineLink>Note the author's use of &quot;DA&quot; - his solution supports IE4!!!</span></font></p> <p align=left><font face=Arial color="#555555" size=2><span class=inlineLink></span></font> </p> <p align=left><font face=Arial color="#555555" size=2><span class=inlineLink>Obviously my version is whiddled way down, but I have to render this from an ASP.Net/C# page, so less is better...</span></font></p> <p align=left><font face=Arial color="#555555" size=2><span class=inlineLink></span></font> </p> <p align=left><font face=Arial color="#555555" size=2><span class=inlineLink>Hope it helps!!   Enjoy!!</span></font></p> <p align=left><font face=Arial color="#555555" size=2><span class=inlineLink></span></font> </p> <p align=left><font face=Arial color="#555555" size=2><span class=inlineLink>Curt</span></font></p> <p align=left><font face=Arial color="#555555" size=2><span class=inlineLink></span></font> </p>Thu, 19 Jun 2008 15:23:12 Z2008-06-19T15:23:12Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#d7281358-fa31-447e-8b8c-9eaf02c83eb3http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#d7281358-fa31-447e-8b8c-9eaf02c83eb3Soi xamhttp://social.msdn.microsoft.com/Profile/en-US/?user=Soi%20xambypass or supress print dialog box<p>wow. it work. i ever think ExecWB function will not work in IE7 but i'm wrong. thank you. But i don't know why my browse don't work with this functione before. but now. it works like a charm! <img alt=Sad src="http://forums.microsoft.com/MSDN/emoticons/emotion-6.gif"> Thank you.</p> <p align=left>But anyway. i aready write a activeX for IE because i need change some thing in print dialog like page side. width, height...</p> <p align=left>Thank again <img src="http://forums.microsoft.com/MSDN/WebResource.axd?d=NySzF1eivP_rMoc50GQJzcvS4MHMOEKwYrCIgDtzuzlw7GsNki3H_INlfYaLgkxF1VGnyL2k5JOqvGrabY8eeg2&amp;t=633337194230757564"></p>Fri, 20 Jun 2008 02:05:40 Z2008-06-20T02:05:40Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#10856660-1241-45e5-b9a8-9c2a41d61808http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#10856660-1241-45e5-b9a8-9c2a41d61808neurhttp://social.msdn.microsoft.com/Profile/en-US/?user=neurbypass or supress print dialog box<p align=left><font face=Arial size=2>Ok, i was following the post, not because i need to supress the dialog but because i just need to know if the user hit print or cancel on the dialog. i'm tired of this alice-in-wonderland style, onafterprint is firing before the dialog?!?!? to adjust onbeforeprint?!?!?! as if i can't decide?</font></p> <p align=left> </p> <p>seems that supressing the dialog will be my best effort to know that the page was printed... but leave the user no choice of printer, format, orientation and all that stuff the printing dialog was made for...</p> <p align=left> </p> <p align=left>i was happy with the dialog, actually i need it to choose printing target and setting.. just wanted to know if it was printed or canceled. </p> <p align=left> </p> <p align=left>gosh! i will keep looking</p>Sun, 22 Jun 2008 10:59:17 Z2008-06-22T10:59:17Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#17e91cb0-ea0a-4be9-beb0-c9f638600bcchttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#17e91cb0-ea0a-4be9-beb0-c9f638600bccIECUSTOMIZERhttp://social.msdn.microsoft.com/Profile/en-US/?user=IECUSTOMIZERbypass or supress print dialog box<p>Hi,</p> <p align=left> </p> <p align=left>I whent to the trouble of creating an Addon for IE7 to print directly to the default printer (bypassing the security setting to allow scripting of the WebBrowser control) only to find.... It is already in IE7(and 8, thats where I 'discovered' it). lol.</p> <p align=left> </p> <p align=left>Here is how you print to the default printer without the print dialog box....</p> <p align=left> </p> <p align=left>Just click the Print button on the Command bar.... you should then see a small printer icon on the status bar and the current document will be sent straight to the default printer. </p> <p align=left> </p> <p align=left>There is no need to put a special Print button on your web pages.(Actually there are situations (Public Libraries) where you do not users to be able to print web pages.</p> <p align=left> </p> <p align=left>Do not click on the drop-down chevron to make a selection from the dropdown menu,, just click the button directly... thats it. </p> <p align=left> </p> <p align=left>We can all lol now.</p> <p align=left> </p> <p align=left>Talk about the hidden obvious. So  File&gt;Print menu option will prompt with the printer selection dialog and then print, Command bar Print button will print direct to the default printer without prompting. The Dropdown menu of the Command Bar Print button has three options - Print, Print Preview and Page Setup</p> <p align=left> </p> <p align=left>Regards.</p> <p align=left><font face=Arial size=2></font> </p>Tue, 08 Jul 2008 06:33:54 Z2008-07-08T06:33:54Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#90d4db08-1401-4eee-9964-a7dc517bb3bfhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#90d4db08-1401-4eee-9964-a7dc517bb3bfCurtisDeHavenhttp://social.msdn.microsoft.com/Profile/en-US/?user=CurtisDeHavenbypass or supress print dialog box<p align=left><font face=Arial size=2>Thanks Rob!  That's good to know.  However, in our case we needed not so much a print link on the page, but rather we had to be able to print &quot;unattended&quot;.  Our application is largely js-based.  The browser may receive unsolicited information from the server that needs to be sent to a printer - regardless if someone is sitting in front of the pc or not!  And if someone happens to be using the pc, independent of any work they're doing.  It's just the nature of our application.</font></p> <p align=left> </p>Tue, 08 Jul 2008 09:58:51 Z2008-07-08T09:58:51Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#0198fd64-aa5e-4487-b306-8b2f173e1ab7http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#0198fd64-aa5e-4487-b306-8b2f173e1ab7IECUSTOMIZERhttp://social.msdn.microsoft.com/Profile/en-US/?user=IECUSTOMIZERbypass or supress print dialog box<p align=left><font face=Arial size=2>k, np with that.</font></p> <p align=left> </p> <p align=left>You will have full control over your security settings for your browser. Its for users of sites like coupons.com who would like to print a large volume of internet content without being restricted by knowledge of IE's security zone settings.</p> <p align=left> </p> <p align=left>My second biggest download is for the Print Preview command bar button... very popular with Public Libraries who do not want to waste paper. Using GP they can disable the built-in IE Printing functions and force their users to go through the print preview dialog before committing to print a hard copy.</p> <p align=left> </p> <p align=left>The issue I think that just plain clicking the Print button on the Command Bar had a different (thought supptle) function to the menu commands. It may be in the IE help file but I haven't looked yet.</p> <p align=left> </p> <p align=left>Regards.</p>Tue, 08 Jul 2008 10:10:29 Z2008-07-08T10:10:29Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#9f7d1543-2cf5-403b-b1d0-930919e7f6f9http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#9f7d1543-2cf5-403b-b1d0-930919e7f6f9MeMadhttp://social.msdn.microsoft.com/Profile/en-US/?user=MeMadbypass or supress print dialog box<p align=left><font face=Arial size=2><a id="_ctl0_MainContent__ctl0_PostForm_ReplyPostedBy" href="http://forums.microsoft.com/msdn/User/Profile.aspx?UserID=344196&amp;SiteID=1"><strong><font color="#013da4">CurtisDeHaven</font></strong></a><span id="_ctl0_MainContent__ctl0_PostForm_ReplyPostedByDate"> : this method works like a charm. thanks!  One question, is there anyway we can print to a specific printer instead of default printer ?  Also is there a chance to format the pages via program ex: landscape or Portrait etc?</span></font></p>Fri, 22 Aug 2008 07:27:10 Z2008-08-22T07:27:10Zhttp://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#828d188a-35ce-4f6a-8fed-e278e0cb6f14http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/86eaeda9-c868-4d20-95b8-3b9bc2e19cc6#828d188a-35ce-4f6a-8fed-e278e0cb6f14CurtisDeHavenhttp://social.msdn.microsoft.com/Profile/en-US/?user=CurtisDeHavenbypass or supress print dialog box<p align=left><font face=Arial size=2>&gt;&gt; specific printer instead of default printer ? </font></p> <p align=left> </p> <p align=left>Not that I'm aware of, though my own superiers would like that too!  If anyone figures out how to do that, please post it here.</p> <p align=left> </p> <p align=left>As far as portrait or lanscape, you probably need to use the print dialog.  I suspect the printer prints it the way it was &quot;last&quot; printed.</p>Fri, 22 Aug 2008 10:40:19 Z2008-08-22T10:40:19Z