Determine which pages were printed

51 Views Asked by At

I am writing an application which can only allow users to print pages once. I am looking for a way to find out which pages have been sent to the printer to update a database to mark those pages are printed.

1

There are 1 best solutions below

2
On

You have to capture the printer button and store to your own control.

After that you can work with media print on your divs to display or not display the content when the printer button is clicked.

Take a look how to capture the button here: How to capture the click event on the default print menu called by Javascript window.print()?