Export two excel data into single excel sheet by adding heading and some calculated data

戏子无情 提交于 2020-06-08 05:43:20

问题


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 data attribute of ExcelSheet is for one data table.
  • The dataSet attribute of ExcelSheet is 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!