Is there a print flag?

Posted by: bcwhiteh1 on 4 August 2017, 2:49 pm EST

  • Posted 4 August 2017, 2:49 pm EST

    Hello,


    I'm using Active Reports 2.0 to print some documents stored in a database with a program I wrote in VB 6.0. 


    The current way I have it implemented is that I have a flag stored inside the database, a field for a 1 or 0 to determine if that row of data has been printed or not.  So basically I scan my database for any 0's, put those into a report, do a rptmain.show, then I change all my 0's to 1's and exit.


    What I want to have happen though is to be able for the user to preview the report, then determine if they want to print it, and based on whether they choose yes or no to print the report, I change my 0's to 1's.


    Is there a way to check if the print button was pressed and the document actually printed when I preview the report in AR 2.0?


     


    Thank you

  • Replied 4 August 2017, 2:49 pm EST

    You could take a look at the ToolbarClick and PringProgress events of the Active Report, you should be able to generate the data you want via one or both of those.


    http://www.datadynamics.com/Help/AR2Std/HX_ActiveReport_ToolbarClick.html
    http://www.datadynamics.com/Help/AR2Std/HX_ActiveReport_PrintProgress.html

Need extra support?

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

Learn More

Forum Channels