Click to See Complete Forum and Search --> : Java Print - without dialogue box


Phazula
December 12th, 2003, 05:00 AM
Is there way to make a page print without having the print dialogue box appear?

Currently I am using window.print() code in the onload section of the body tag.

I need the print to be transparent to the user for an intranet application I am designing.

Any help would be appreicated.

TIA

Phaz

Satishpp
December 12th, 2003, 12:51 PM
Not possible.

You cant bypass the browsers print dialog.

Satish

cjard
December 18th, 2003, 01:44 PM
for the very reason that it would not be nice for a user to be browsing a malicious website and their printer suddenly start printing porn inside hidden IFRAMES..

muha :)

you can but do your best, like i did on the company website:

http://www.lexpos.com/updates.asp

click the option to view the help file.. a new window appears, and the script catches attempts to print before the document has loaded (note: document.completed property may return true even if document images are being downloaded..!)
play with it and see.. take the code if you wish, i dont mind:)