Export to xls or to csv