Today, I found a bug of IE, depressed again! The impact on my project is not small.
When you use the Binary BEHAVIOR that implements the OnaFterPrint event in the IHTMLWINDOW interface, you will find that OnAfterPrint events are triggered before printing or printing preview. The correct process should be that onfterprint is triggered after printing or print preview. This bug does not exist in HTC (HTML Component), and there is no test in WSC (Windows Scripting Component).