Author Archive

Customization of ReportViewer and ReportDesigner Behavior Using Actions

Dmitry Zhukov

It is possible to configure ReportViewer’s and ReportDesigner’s behavior by using Actions.
In order to override an action you need to write the Action.Executing event handler and set the ‘true’ value for the e.Handled flag. Then you need to implement the necessary behavior.

reportDesigner.Actions["ActionName"].Executing += new PerpetuumSoft.Reporting.Windows.Forms.Action.ExecutingEventHandler(ActionName_Executing);

void ActionName_Executing(object sender, PerpetuumSoft.Reporting.Windows.Forms.ExecutingEventArgs e)
{
e.Handled = true;

}

If you need to handle the action after it is executed, you need to write the Action.Execute event handler and set the ‘true’ value for the e.Handled flag. Then you need to implement the necessary behavior.

(more…)

March 24th, 2011