Detect that Report has been printed properly RRS feed

  • Question

  • User858479128 posted

    Hey All

    I'm using microsoft report viewer, it works fine but I want to track printing for the reports, so I need to detect that the user clicked the print button in the report viewer and then clicked Ok to send the document to the printer after that I want to post back this information to the server to track printing



    Sunday, May 15, 2011 11:19 AM


All replies

  • User377791177 posted

    i don't think that can be done with report viewer.

    Sunday, May 15, 2011 1:04 PM
  • User858479128 posted

    Thanks for your reply

    I want to ask if there are any work around to achieve that

    any ideas are welcomed

    Thursday, May 19, 2011 3:44 AM
  • User-1561814533 posted

    It can't be done. You are printing locally on the client side.

    Thursday, May 19, 2011 3:55 AM
  • User858479128 posted

    Thanks frez

    Yes I know that but I mean if I can detect that the document has sent to the printer that means that he clicked Ok in the print dialog


    Thursday, May 19, 2011 4:00 AM
  • User377791177 posted

    NO, u can't detect that.

    Thursday, May 19, 2011 5:25 AM
  • User858479128 posted

    Can I do that if I make a print button and print the document manually? 

    Thursday, May 19, 2011 6:39 AM
  • User377791177 posted

    so what special will u do other than calling window.print() using JS. if nothing, u still won't be able to do that.

    Thursday, May 19, 2011 6:48 AM
  • User-1561814533 posted

    It is possible to invoke the reportviewer print dialog remotely, but you will have a restriction on only using it from IE. See this link; http://blogs.msdn.com/b/selvar/archive/2011/04/09/invoking-the-print-dialog-for-report-viewer-2010-control-using-the-javascript-api.aspx

    Then, say you are wanting to audit the fact someone has printed it you could then use ajax to let the server know. Of course you still wont know if they cancelled out of the dialog.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, May 19, 2011 8:17 AM
  • User858479128 posted

    Thanks Frez

    Good solution I have made it although it has some issues

    Thanks again

    Sunday, May 22, 2011 6:39 AM