I am working on one web application which is developing in ASP.Net vNext 5 MVC with angularjs. I want to export javascript array data in format of .xls, csv and pdf. My data structure (List of Employees) like this,
[{
"id": 1,
"name": "Employee 1",
"joiningDate": "January 2005",
"roleList": [{
"id": 1,
"name": "Role 1",
"relatedDepartment": [{
"id": 1,
"departmentName": "Department 1",
"status": "Working"
}, {
"id": 2,
"departmentName": "Department 2",
"status": "Paused"
}]
}, {
"id": 2,
"name": "Role 2",
"relatedDepartment": [{
"id": 3,
"departmentName": "Department 3",
"status": "Working"
}, {
"id": 4,
"departmentName": "Department 4",
"status": "Working"
}]
}]
}, {
"id": 2,
"name": "Employee 2",
"joiningDate": "May 2006",
"roleList": [{
"id": 3,
"name": "Role 3",
"relatedDepartment": [{
"id": 1,
"departmentName": "Department 1",
"status": "Working"
}, {
"id": 3,
"departmentName": "Department 3",
"status": "Working"
}]
}, {
"id": 4,
"name": "Role 4",
"relatedDepartment": [{
"id": 3,
"departmentName": "Department 3",
"status": "Paused"
}, {
"id": 4,
"departmentName": "Department 4",
"status": "Working"
}]
}]
}]
I want to export to excel in format like, Excel format
Is it possible to export to excel in ASP.Net 5 mvc with angularjs? If not please let me know any other possible solutions.
Thanks in advance.