Event handlers

Top  Previous  Next

A script is mainly used for creating objects' event handlers. For creating event handler select the needed object. In the "Properties" window, press the btn79 button, in order to switch on the list of events:

 

scriptEventHandler

 

Select the event you want and double click it. FastReport adds an empty event handler into the report code:

 

private void Text2_BeforePrint(object sender, EventArgs e)

{

  

}

 

The "Report" object has got events as well. This object can be chosen by the following method:

 

select "Report" in the "Report Tree" window;
select "Report" in the drop-down list in the "Properties" window.

 

In order to delete the event handler, choose an event in the "Properties" window, select the text and press the Delete key:

 

scriptEventHandler1