How to export empty excel with only Column headers

Hi, I need to download a template ,it should contain only column names.  Is there any way to export empty excel with only column headers? Thank you
1 answers

Hi ,

you can create on entity with the attributes you need as column headers and keep as a datasource for an datagrid , in the datagrid you have export to excel option , with empty data in datasource entity you can get empty excel with column headers alone.