17 Replies Latest reply on Sep 9, 2010 3:07 AM by Rob-B

    Running a script every time a PDF prints?

    Rob-B

      Hi,

       

      Sorry for the Newb question, I want a script to run every time someone prints my dynamically created document. I know there is a didPrint event, but how do i trigger it to run a script whenever someone prints?

       

      At the moment I've attached it to a Print() handler but this can obviously be bypassed.

       

      function Print() {

      print();

      this.getURL('logit.php?RecordNo=$recordno&DBForLogit=dB04',false);

      }

       

       

      How can I be sure this line runs every time the document is printed

       

      this.getURL('logit.php?RecordNo=$recordno&DBForLogit=dB04',false); ?

       

      Thanks,

       

      Rob