0

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.

Shon
  • 486
  • 4
  • 9

1 Answers1

0

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()?

Community
  • 1
  • 1
Ricardo França
  • 2,923
  • 2
  • 18
  • 18
  • The application is windows based and not web based. Also, a preview of the report is to be given and therefore the crystal reports viewer was used. I am asking how to capture the print event for this an not for printing a web page which use different controls – Shon Apr 11 '16 at 14:52
  • You should be more specific on your question and tell your sceneario. I have no expertise on crystal reports. Gook Luck! – Ricardo França Apr 11 '16 at 17:28