in IE you can bypass the printer dialogue box without ActiveX or client side
Java applet...

<script>
    function noDialog (numcopy) {
        var i = 1;
        for (i; i==numcopy; i++) {
            if ((navigator.appName == "Netscape")) {
                window.print()
            } else {
                var mybrowser = "<OBJECT ID='brwsr' WIDTH=0 HEIGHT=0
CLASSID=''></OBJECT>";
                document.body.insertAdjacentHTML('beforeEnd', mybrowser);
                brwsr.ExecWB(6, -1)
            }
        }
</script>

<form name="prnform">
    How many copies: <input type="text" name="prnumber">
    <input type="button" > </form>

(but is it a bug, or is it a feature?) :)

----- Original Message -----
From: "Pete Ruckelshaus - CFList" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, May 10, 2004 11:24 AM
Subject: Re: CF sending data to a local printer?

> This is not possible unless you use ActiveX or a client side Java
> applet.  Trust me.  We tried.  The closest you can get is something like
> doing a body onload() event in _javascript_ and have it call the print()
> function; this would bring up the print applet, so it would require the
> user to click the print button.
>
> Pete
>
> Daniel Farmer wrote:
> > It's been requested that I create this form that when gets submitted
> > sends the content to a printer ( in the persons place of business ).
> >
> > I've never done anything like that before. Was wondering if it was even
possible.
> >
> > Thanks
> >
> >
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to