If you are getting your data from an OData service from Gateway, you could use $format=xlsx in the resource URI.
i.e. https://myhost.example.com/sap/opu/odata/sap/service/UserSet?$select=...&$filter=...&$format=$xlsx
This will get Gateway to output the data as an Excel file and is what the new Smart Template controls use.
Oli