DEV Community

Discussion on: How To Export Data To Excel From Api Using ReactJS (incl. Custom Headers)

Collapse
 
hunghvu profile image
Hung Vu

There is one big catch though, you must define cell format yourself.

Let's say you already had an Excel sheet (with styling), and want to use that sheet to store data. An approach is to open your existing sheet, copy all existing cell information, write API data, then save to a new file (in-place replacement is not available AFAIK). However, xlsx will nullify all existing style of the sheet so you must manually define cell style upon exporting.

Apparently, this feature is only available in the Pro version, so it is a huge blockage IMO.