Hi Siegfried,
Create one page with the data you want to export in to excel.
Add the datagrid & connect the entity and add export to excel button in the datagrid.
Now run the application and click export to excel button. It will export the data present in the datagrid.