Nitesh Gairola
Nitesh Gairola

Reputation: 1

How to export Web Page UI as excel sheet using ReactJS

In my ReactJS application, I have a billing screen where users can create and preview bills. On the preview screen, there's an option to export the bill as an Excel file. I want the exported Excel file to retain the same UI design as the preview while keeping all fields editable. One approach is to export the preview as an image inside the Excel file, but I need a solution where the fields remain editable instead of being a static image.

Upvotes: 0

Views: 23

Answers (1)

Shawinder Jit Singh
Shawinder Jit Singh

Reputation: 143

To export an HTML table from your React application to an Excel file, you can utilize the react-html-table-to-excel library. for this you need to put your content in table

Upvotes: 0

Related Questions