Print ereporte only one time

Posted by: ricgom731 on 11 April 2018, 1:52 pm EST

    • Post Options:
    • Link

    Posted 11 April 2018, 1:52 pm EST

    Good day.

    I use Active Reports 11 and I need to generate and report that it can be sent to print (physically) only one occasion. Is it possible to know if a PDF document was printed?

    Obviously if the document is not printed due to lack of paper in the printer, etc. That does not matter, but I do need to know when I pressed the “Print” button in the PDF options.

    Please help.

  • Posted 12 April 2018, 12:48 am EST

    Hello Ricardo,

    What I understood from this, you want to know that your document is actually printed on physical printer or not. Could you please confirm that is my understanding is correct.

    Also, could you please explain, how are you printing the report?(through the viewer, code etc)

    This will be very helpful for us.

    Thanks,

    Mohit

  • Posted 12 April 2018, 10:35 am EST - Updated 30 September 2022, 6:23 pm EST

    Thanks…

    We generate a report that due to security issues, the user is allowed to print one time. The user of the system can view it in PDF as many times as necessary, but you can only print it once. I know how to know if the report was generated in PDF, but I do not know what to know if it was already printed (if you already clicked the button to print the PDF’s poriedades).

    <%@ Page Language=“C#” Inherits=“System.Web.Mvc.ViewPage” %>

    <%@ Register Assembly=“GrapeCity.ActiveReports.Web.v11, Version=11.0.8705.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff” Namespace=“GrapeCity.ActiveReports.Web” TagPrefix=“ActiveReportsWeb” %>

      <script runat="server">
    void Page_Load()
    

    {

    WebViewer1.Report = Model;

    }


    .aspx

    ****************************

    In Action MVC

    MyReport rpt = new MyReport(ListData);

    return PartialView(“WebViewer”, rpt);

    Attached picture …

  • Posted 13 April 2018, 4:30 am EST

    Hello Ricardo,

    It is not possible through AcrobatReader ViewerType. When you preview the report in AcrobatReader, then WebViewer export the report into PDF format and display the report the report into browser through PDF plugin. You can’t control any action on generated PDF file. Also, In my understanding, user can print PDF file multiple time after downloading or printing the report through WebViewer into PDF format.

    Thanks,

    Mohit

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels