Trapping on print events
Discussion
I need to trap "on print" events so that I can log them in a db I'm developing. IE has an onprint handler that I can call but my understanding is that event doesn't exist in FF.
Is there a way I can execute some code (insert a record in a MySQL database) when a user prints a form that works cross browser?
I'm looking to support IE6/7 & FF, anything else can go whistle....
Is there a way I can execute some code (insert a record in a MySQL database) when a user prints a form that works cross browser?
I'm looking to support IE6/7 & FF, anything else can go whistle....
I can't tell you how to do it in an HTML application, but if you can produce an executable, a service, or perhaps an ActiveX control then on a windows platform, it looks like "FindNextPrinterChangeNotification" could be your friend. More information in the online MSDN documentation I'm sure.
FindNextPrinterChangeNotification
FindNextPrinterChangeNotification
Almost, but not quite 
It's not a physical printer object that I wish to query it's when the user presses <CTRL> P in my web application. When they do that I just run a MySQL query and insert a record in the log table.
I can't rely on them actually clicking a print button if they're a bit more web savvy.

It's not a physical printer object that I wish to query it's when the user presses <CTRL> P in my web application. When they do that I just run a MySQL query and insert a record in the log table.
I can't rely on them actually clicking a print button if they're a bit more web savvy.
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff



