Sorry about that. Should have noticed that you are using SP2 and consider the new dynamics features. You need two little changes. The class shouldn't derive from ReportListener directly, but from UtilityReportListener:
DefineClass demo as UtilityReportListener
This is a class that is stored in the FFC foundation classes and implements the dynamic formatting. Before you can instantiate the object, you need: