I want to create a simple excel file with two rows. example:
order id | Name | Address | Quantity | Price | Total
1 | XXXX | YYYYYYY | 10 | 700 |
See this tutorial:
Here's a small (2.7 KB zipped) library to export XLS:
Here's a similar one to export XLSX (4.4 KB zipped):
Both have small working examples.