This demo illustrates how to use events for custom drawing report controls. In this demo, the XRControl.BeforePrint and XRControl.HtmlItemCreated events are handled, to replace the standard drawing procedures of an XRControl object. This example creates a report containing a list of the 10 most heavily populated countries in the selected continent. The population value is represented graphically by a progress bar, which is drawn using the Custom Draw feature.