Posted 10 October 2017, 8:11 pm EST
Hello,
I am getting Below error when I am trying to export the grid (treeview) to excel.
ERROR TypeError: h is not a constructor at Function.n._saveWorkbookToZip (wijmo.xlsx.js:13) at Function.n.save (wijmo.xlsx.js:13) at n.save (wijmo.xlsx.js:13) at Function.n.save (wijmo.grid.xlsx.js:13) at ProjectComponent.webpackJsonp.163.ProjectComponent.exportExcel (project.component.ts:202) at Object.eval [as handleEvent] (ProjectComponent.html:7) at handleEvent (core.es5.js:11997) at callWithDebugContext (core.es5.js:13458) at Object.debugHandleEvent [as handleEvent] (core.es5.js:13046) at dispatchEvent (core.es5.js:8601)
I have following html code
<div class="text-right"> <button type="button" class="btn btn-primary" (click)="exportExcel()"> Export </button> </div>
and my component class has following code
exportExcel() { wjcGridXlsx.FlexGridXlsxConverter.save( this.flex, { includeColumnHeaders: this.exportIncludeColumnHeader, includeCellStyles: false }, 'ProjectSummary.xlsx' ); }
This code is as per the code example provided in wijmo explorer
Thanks
Sameer.