About ReportDesign event handlers
There are several events associated with the ReportDesign element. There are five ReportDesign element events that fire during the report generation process. These five events are not associated with a specific report item, data source, or data set. The ReportDesign events are initialize, beforeFactory, afterFactory, beforeRender, and afterRender.
The initialize event fires before any other event and the initialize event handler is therefore the most logical place to include initialization code.
The beforeFactory event fires before the generation phase. The afterFactory events fire after the generation phase. The beforeRender event fires before the presentation phase.
The afterRender events fire after the presentation phase. There are no specific guidelines for what kind of code to include in these event handlers. They are available for whatever purpose you have for them.