adding buttons to custom modules

I need to add an "export to CSV" button to a custom module - Our project module that will allow me to dump all data relating to the project into an excel spreadsheet. I also need to add this button to the time summary tab associated with the project and the communications tab associated with the project.

I've read the System Administrator Guide but it hasn't helped much.

Could someone please walk me through this?