Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run code after printing

Status
Not open for further replies.

aradia926

MIS
Jul 11, 2005
29
US
I'm using Crystal Reports in Visual Studio 2005. I need to be able to trigger some code to run after a report is printed. My report is set up in a CrystalReportViewer with the toolbar and print button enabled in the viewer. Is there any way to catch the print event?

Thanks!
 
I just wanted to bump this thread... does anybody have any ideas? Is this even possible?
 
At least in the RDC, you can place code in the print button clicked event (within the CRViewer control). I assume it's the same in VS2005.

- Ido

Visual CUT & DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
In Visual Studio 2005, the print button is contained within a toolbar that does not seem to have any print event associated with it.

How do you get to the event in RDC?
 
The event belongs to the viewer object, not a button.

PrintButtonClicked Event (CRViewer Object)
The PrintButtonClicked event occurs when the Print button is clicked.

Syntax:
Event PrintButtonClicked ( UseDefault As Boolean )

UseDefault Boolean. Indicates whether or not the default action of the event will be performed (set to False to control printing with your code).
 
Well the problem is that the viewer in Visual Studio 2005 doesn't list a printbuttonclicked event. How can I get to it from Visual Studio?
 
I think the problem is that the Crystal version that comes with Visual Studio is crippled. To get all the good stuff try buying the Developer's version of CR 11
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top