TOleanderController Events

AfterPrintField
Declaration
property AfterPrintField: TOleanderPrintEvent;
Description

The AfterPrintField event is activated when the OleanderController finishes a call to the PrintField method. This event is the last action before PrintField returns to the caller. PrintField is called for every field in a record every time the field will be printed.

By assigning a method to this property, you can take any special actions required by the event.

 

AfterPrintGroup
Declaration
property AfterPrintGroup: TOleanderPrintEvent;
Description

The AfterPrintGroup event is activated when the OleanderController finishes a call to the PrintGroup method. This event is the last action before PrintGroup returns to the caller. PrintGroup is called for every group in the document every time the group will be printed.

By assigning a method to this property, you can take any special actions required by the event.

 

AfterPrintRecord
Declaration
property AfterPrintRecord: TOleanderPrintEvent;
Description

The AfterPrintRecord event is activated when the OleanderController finishes a call to the PrintRecord method. This event is the last action before PrintRecord returns to the caller. PrintRecord is called for every record in the group every time the record will be printed.

By assigning a method to this property, you can take any special actions required by the event.

 

BeforePrintField
Declaration
property BeforePrintField: TOleanderPrintEvent;
Description

The BeforePrintField event is activated when the OleanderController starts the PrintField method. This event is the first action in PrintField. PrintField is called for every field in a record every time the field will be printed.

By assigning a method to this property, you can take any special actions required by the event. By raising an exception in this event handler, you can prevent the PrintField operation from occurring.

 

BeforePrintGroup
Declaration
property BeforePrintGroup: TOleanderPrintEvent;
Description

The BeforePrintGroup event is activated when the OleanderController starts the PrintGroup method. This event is the first action in PrintGroup. PrintGroup is called for every group in the document every time the group will be printed.

By assigning a method to this property, you can take any special actions required by the event. By raising an exception in this event handler, you can prevent the PrintGroup operation from occurring.

 

BeforePrintRecord
Declaration
property BeforePrintRecord: TOleanderPrintEvent;
Description

The BeforePrintRecord event is activated when the OleanderController starts the PrintRecord method. This event is the first action in PrintRecord. PrintRecord is called for every record in the group every time the record will be printed.

By assigning a method to this property, you can take any special actions required by the event. By raising an exception in this event handler, you can prevent the PrintRecord operation from occurring.

 

OnClose
Declaration
property OnClose: TNotifyEvent;
Description

The OnClose event is activated when the OleanderController finishes a call to the Close method. This event is the last action before Close returns to the caller.

 

OnIdentifierCheck
Declaration
property OnIdentifierCheck: TOleanderIdentifierCheckEvent;
Description

The OnIdentifierCheck event is activated during a call to the Check method. If the identifier found could not be resolved by the controller, the OnIdentifierCheck event is called to ask the application if the identifier is known. If the application sets the "Ok" parameter to True, it will handle the identifier. If set to False the identifier is not known and an exception will be raised.

 

OnOpen
Declaration
property OnOpen: TNotifyEvent;
Description

The OnOpen event is activated when the OleanderController finishes a call to the Open method. This event is the last action before Open returns to the caller.

 

OnIdentifierValue
Declaration
property OnIdentifierValue: TOleanderIdentifierValueEvent;
Description

The OnIdentifierValue event is activated during a call to the Print method. If the identifier ready to print could not be resolved by the controller, the OnIdentifierValue event is called to ask the application to deliver its replace value to be inserted in the resulting document.

Note: During print Oleander will set the Datatype property of the identifier it prints using the information of the associated Delphi TField. The application should set property for every identifier it is responsible to allow proper formating. The default for the Datatype property is ftString.