$ 0 0 Vê se isto te ajuda http://stackoverflow.com/questions/6840099/how-can-i-export-data-to-an-excel-file