问题
I am using react-data-export to export the excel sheet in my react project. I need to export two excel data in single file. Example
If not possible the above module please suggest me a new way to do so.
回答1:
I have published a simple proof of concept that it should be useful to understand how it is possible to satisfy the needs in the question to export two excel data in single file.
In the ExcelSheet components it is possible to pass a dataSet that allows any number of data tables and other features such as column headers and the offset in rows and columns between a data table and the subsequent one.
- The
dataattribute ofExcelSheetis for one data table. - The
dataSetattribute ofExcelSheetis for one or more data table
In the react-data-export git repo there is also an example simple_excel_export_02 but I have not been able to make it work, also there is a open issue with some suggestions I've learned for my POC.
回答2:
You should look into more programming approaches like the one in pandas library on python.
来源:https://stackoverflow.com/questions/62071731/export-two-excel-data-into-single-excel-sheet-by-adding-heading-and-some-calcula