Please tell me that how can we code in classes for "Export to Excel" reports ,,,

Please tell me that how can we code in classes for “Export to Excel” reports ,

Please tell me the complete procedure.

Thanks & Regards

Vijay