I am trying to have an asp web page load then print then redirect to another
page all without having the user having to do anything. Is there an easy
script to have this occur.

I would appreciate any help with this.

Thanks

Re: Printing a web page by Ray

Ray
Thu Dec 04 10:23:44 CST 2003


"Michael Sirota" <msirota@bdstmcd.com> wrote in message
news:u880AAouDHA.2208@TK2MSFTNGP10.phx.gbl...
> I am trying to have an asp web page load then print then redirect to
another
> page all without having the user having to do anything.

This is not possible. You can use client-side code to launch the print
dialog, but the user will have to accept the option to print. ASP is all
running on the server so it has no way of printing on the client's printer.

Ray at work



Re: Printing a web page by Michael

Michael
Thu Dec 04 10:45:32 CST 2003

I understand I cannot print from the server side. But once the page loads,
what is the script that will then print the page client side. I realize the
user will have to accept printing the page. Is there a way to know when the
page is finished printing or if the user declined to print the page so I can
then redirect to the next page.

Thanks

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:%23hp99LouDHA.3220@tk2msftngp13.phx.gbl...
>
> "Michael Sirota" <msirota@bdstmcd.com> wrote in message
> news:u880AAouDHA.2208@TK2MSFTNGP10.phx.gbl...
> > I am trying to have an asp web page load then print then redirect to
> another
> > page all without having the user having to do anything.
>
> This is not possible. You can use client-side code to launch the print
> dialog, but the user will have to accept the option to print. ASP is all
> running on the server so it has no way of printing on the client's
printer.
>
> Ray at work
>
>



Re: Printing a web page by Ray

Ray
Thu Dec 04 11:23:56 CST 2003


"Michael Sirota" <msirota@bdstmcd.com> wrote in message
news:ep9sHYouDHA.3416@tk2msftngp13.phx.gbl...
> I understand I cannot print from the server side. But once the page
loads,
> what is the script that will then print the page client side.

window.print()

> I realize the
> user will have to accept printing the page. Is there a way to know when
the
> page is finished printing or if the user declined to print the page so I
can
> then redirect to the next page.

I do not believe so. MAYBE, if you use a media=print CSS reference to a
file that doesn't exist, the browser will not try to access that file until
the user prints and you could track whether or not the user printed by
404'ing that css reference. But that's a stretch, and I highly doubt that
the browser waits until it prints before it would attempt to load that css
file.

Ray at work