How to determine which button was clicked using Crystal Reports Winform Viewer click events.
In order to get data from the report you must use the ClickPage event, but this event does not contain which button was clicked.
You have to capture both the Click and ClickPage events to capture both the data and the button that was clicked as shown below:
private void crystalReportViewer1_ClickPage(object sender, CrystalDecisions.Windows.Forms.PageMouseEventArgs e)
value = e.ObjectInfo.Text;
private void crystalReportViewer1_Click(object sender, EventArgs e)
MouseEventArgs testMouseEventArgs = (MouseEventArgs)e;
if (value != null)
MessageBox.Show(value + " - " + testMouseEventArgs.Button.ToString());
value = null;
SAP Knowledge Base Article 1202102 - Crystal Reports Winform Viewer click events in Microsoft Visual Studio .NET.
KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , How To