CrystalReportViewer questions

S

Stan Sainte-Rose

Hi,

How to capture the CrystalReportViewer Events.
I need to do some actions when the user clicks on the close and print icons.
By the way, I thank you for your contributions...

Stan
 
C

CJ Taylor

No, CRV will handle most of those events on its own, but if you want to do
more with them they are availible. And you handle them sthe same as other
events.

-CJ
 
S

Stan Sainte-Rose

Thanks for your reply
In fact, I want to know if the user clicks on the Print icon and the Close
Viewer icon.
By the way, when I click on the Close icon, it doesn't close the view.
Any suggestions ?
Stan
 
B

Bernie Yaeger

Hi CJ,

You said: 'if you want to do more with them they are available'. How so?
When you look at the events that are available, I don't see any way of
getting to the various buttons. If there is a way, I'd love to know it
also.

Tx,

Bernie Yaeger
 
C

CJ Taylor

Well, what do you want to do with the buttons? The event fires letting you
know the button has been clicked. If you want to do your own processing
such as the ViewZoom event, you can.

I was mistaken about printing, the viewer doesn't have a print event, but if
you (in your Designer) click on the CrystalReportViewer object you can see
all of its events. I'm sure you knew that, just wanted to throw it out
there..

So with those events available you can do whatever you want. As for getting
to the actual buttons, I just looked at the object heirarchy in object
browser for
CrystalDesicions.Windows.Forms.CrystalReportViewer

The buttons aren't declared within there it looks like only properties
enabling if you can see them or not. So my assumption is that they are
declared private (or drawn within a paint event) But modifying them or
hooking them doesn't appear to be possible.

I hope this helps some.

-CJ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top