das165227
asked on
onafterprint firing when you open the print dialog box or the print preview dialog. is it supposed to do this?
this is probably more an asking for information question than a code question. We're making an insurance agency application that works on the web and if they print a letter off my web word processor to send to a client i want it to automatically save a copy of the letter on the server for errors and ommissions purposes. Anyways everything works, but i'm using the onafterprint event to trigger the save and its firing when you open the print dialog. You don't even have to print. Just open the dialog. Is this a bug?? Is there another way to do this if I can't get this to work.
ASKER
its on the internet but only certain people will be allowed in and you can force them to use a certain browser etc...
Because the only other way I see it is to use ScriptX ActiveX control to stop the Print Dialog. This could make a lot of people mad, though, so think about it and post if you still want the solution.
ASKER
i don't if thats really my question. don't it seem like a bug that the onafterprint event is firing when you just open the dialog. i'm trying to judge if i should open a case with microsoft if its their bug or if i'm just being dumb.
ASKER
i don't know i mean
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks anyways
ASKER
hey zyloch. i just read this when i was looking for something else. i don't want to take the points back from you or anything. But according to this it seems like its a bug.
Calling the print method has the same effect as choosing Print from the Microsoft Internet Explorer File menu. The print method activates the Print dialog box, prompting the user to change print settings. When the user clicks the OK button, the following sequence of events occurs:
The onbeforeprint event fires.
The document prints.
The onafterprint event fires.
The onbeforeprint and onafterprint events are particularly useful when not all the information on the page is visible at all times. Use the onbeforeprint to modify the document to make all the information on the page visible for printing. To return the document to its original state, use the onafterprint event.
this can be found at.....
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/print.asp
Calling the print method has the same effect as choosing Print from the Microsoft Internet Explorer File menu. The print method activates the Print dialog box, prompting the user to change print settings. When the user clicks the OK button, the following sequence of events occurs:
The onbeforeprint event fires.
The document prints.
The onafterprint event fires.
The onbeforeprint and onafterprint events are particularly useful when not all the information on the page is visible at all times. Use the onbeforeprint to modify the document to make all the information on the page visible for printing. To return the document to its original state, use the onafterprint event.
this can be found at.....
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/print.asp
So this is basically intranet?
Regards,
Zyloch