This has to be a manual process as the browser is not allowed direct access to the users local computer for security reasons There are some 'hacks' that can do it, but the browser support is extremely limited. You can however add a link in your page when the xls is generated so the user clicks on it and can download it himself.