Export to excel

I have an asp table. Need to export the data from the table to excel. Are there any sample programs for this? 
Thanks in advance.