Click to See Complete Forum and Search --> : open page, print page, close page


lcscne
10-06-2003, 09:04 AM
I am at a loss to know how to accomplish this. I want to present the user with a list of students with checkboxes next to their name. I want the user to be able check which students they want grade reports (individual web pages) for then loop through that selection and print those reports. So far this is no problem. The problem lies in how to open the webpages (reports), print them then close them. Is there a good way to accomplish this? Idealy it would be nice if the user didn't even see the report on the screen but the report just came out the printer, meaning I would rather not have a bunch of flashing browser windows if thats possible. THanks much.

Khalid Ali
10-06-2003, 09:43 AM
I don't think there is a simple way.
What you might end up doing is
in the onload event
window.print()

this will open the print dialogue for that report page,
then set a timer in the page for may be 30 seconds to close thepage...

BTW IE might have some property that you can use to find out when printing is completed