Newbie to js-xlsx - JSON to xlsx conversion with using angular
See original GitHub issueAnyone can guide me how to convert json to xlsx with using angular?
Here is sample json format:
[ { "agentNo":"324234", "subName":"30, Jul 2013 09:24 AM", "Location":"Singapore", "memberName":42, "certNo": "2342234", "Gender":"Male", "dob":"1 may 1987" }, { "agentNo":"444443", "subName":"30, Jul 2013 09:24 AM", "Location":"Malaysia", "memberName":42, "certNo": "2342234", "Gender":"Male", "dob":"1 may 1987" }, { "agentNo":"2342234", "subName":"30, Jul 2013 09:24 AM", "Location":"India", "memberName":42, "certNo": "2342234", "Gender":"Male", "dob":"1 may 1987" } ]
Here is xlsx sample that need to be generated:
Thanks in advance
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (1 by maintainers)
Top GitHub Comments
The new
sheet_add_json
function can add to an existing worksheet:To control the order of the fields, pass a header option to sheet_add_json:
And to rewrite the column headers, if the objects don’t have the same name as the titles you want, go back and rewrite a new header array in the fourth row (index 3):
Hello @samuelkavin I really don´t know this, sorry