Crystal Reports Toolbar - Print Button Help! URGENT

  • Thread starter Thread starter James Radke
  • Start date Start date
J

James Radke

Hello,

I have a crystal report viewer in a vb.net (Visual Studio.NET 2003) windows
application. The report, and all the toolbar options (print, export) are
all working fine.

The problem I have is that when we print a report, we need to update the
LastPrinted date in a database. Can I somehow tap into or override the
toolbar's print button to add a little code? Or is there some other method
of knowing that the print button was pressed?

If not, what is the best way to accomplish this, as the rest of the items in
the toolbar (export, left and right arrows, size of report, etc) are all
needed?

Any help would be appreciated!
 
You could wrap all of it up in the FormClose event, if you can't find an
event exposed from the toolbar. When the form is closed, prompt to check
that all the pages printed successfully and if so, go update the print
dates. For some reason I remember having to do it that way in VB6.

HTH,

Morgan
 
Back
Top