How To…Implement Custom Open/Save events


“How can I implement custom processing when reports are loaded/saved?”


The following example shows how to implement the Designer OnOpenDoc and OnSaveDoc events to either override or augment the built-in save/load logic. When the OnCustomOpenDoc, OnCustomSaveDoc events are assigned, the report designer will not save or load any reports – it will instead fire the events and your event-handler code will be responsible for taking appropriate action.


Sample Delphi code: