Click to See Complete Forum and Search --> : Printing


Redhead
02-11-2004, 01:07 PM
Hi There

I have alway been able to print an html page buy using the following:


<a href="javascript:window.print()">Print</a>

I was wondering if there is a way to print a page but just go to the default printer without asking the user with the standord print box in IE. and if there is away to print a specific size such as 300px by 400px.

Does anyone know what i'm talking about! :)

AdamGundry
02-11-2004, 01:12 PM
AFAIK, you cannot bypass the print dialog with Javascript alone, for security reasons. After all, would you want to visit a webpage and suddenly have your printer spew out page after page of adverts?

You might be able to do something with ActiveX, but it probably wouldn't be worth it - most users wouldn't download the ActiveX control.

Adam

Redhead
02-11-2004, 01:15 PM
Thanks So Very Much I'm really gald to hear that :) I was just wondering that's about it