generating a excel file from a template and a data file