For "security reasons", you cannot take control of my printer, nor change it's settings (like force duplex, or turn off colour, or print 100 copies)
All you can do is offer the user a convenient link to print with "window.print()" and let the user decide to press OK, or whatever. I, for one, would not want to be "surprised" to find that some web page has randomly taken over my printer. However, there are other products which do allow more control (and offer usually better quality) for printing. However, the quantity printed is generally on the "honour" system, and limited by licence. PDF is one such mechanism, but there are others. With CSS you do have some control over what does, and does not, get sent to the printer (or screen). This allows you to, for instance, turn off menus that aren't part of the main content that a user would want printed; or,as another example, place a different style of banner ad on the printed page, as opposed to the version of the same ad which appears on the screen -- this printed version may even include a coupon or discount for a product or a store. If available in the browser, CSS may even suggest where the page break should go. But -- again -- it cannot change the settings of, or even the number of copies on, the printer. However, some browsers (and/or some browser plug-ins) do allow users to turn on/off CSS -- or even use a user-supplied CSS. Developers (like myself) often use tools like these to help them test their pages for certain things. Anthony - On Mon, Feb 21, 2011 at 4:41 PM, MC Tay <sm...@media88.com> wrote: > Hi: > > We are looking for an alternative print page javascript that would > print once only and without displaying the print dialog. Any one has > any script that can share please? > > We use window.print() currently. > > Thanks! > > MC > > > > ---------------------------------------- > > To unsubscribe from this list, please send an email to > lists...@witango.com with "unsubscribe witango-talk" in the body. > > ---------------------------------------- To unsubscribe from this list, please send an email to lists...@witango.com with "unsubscribe witango-talk" in the body.