example for exporting table data to excel