JSZip v3.1.3 not allowing to export to excel using wjcGridXlsx.FlexGridXlsxConv

Posted by: nilesh_nichal on 4 December 2018, 5:27 pm EST

    • Post Options:
    • Link

    Posted 4 December 2018, 5:27 pm EST

    Hi,

    We are facing an issue with using JSZip v3.1.3 via npm install. While exporting to xlxs we are getting following error. It seems that Wijmo’s export to xlxs required JSZip v2.5.0

    AuditSingleEditComponent.html:126 ERROR Error: ** Assertion failed in Wijmo: Please use JSZip 2.5 to save excel files synchronously.

    at viewWrappedDebugError (core.es5.js:8422)

    at callWithDebugContext (core.es5.js:13477)

    at Object.debugHandleEvent [as handleEvent] (core.es5.js:13055)

    at dispatchEvent (core.es5.js:8614)

    at eval (core.es5.js:9228)

    at HTMLButtonElement.eval (platform-browser.es5.js:2648)

    at ZoneDelegate.invokeTask (zone.js:424)

    at Object.onInvokeTask (core.es5.js:3881)

    at ZoneDelegate.invokeTask (zone.js:423)

    at Zone.runTask (zone.js:191)

    Could we use the JSZip 3.1.3 version to support the export functionalities?

    Thanks,

    Vaibhav Parkhi

  • Posted 6 December 2018, 3:11 pm EST

    Hi Vaibhav,

    It seems like you are trying to use save() method while using JSZip 3.1.3, save() method works with JSZip 2.5.0, while for JSZip 3, you need to use saveAsync() method instead.

    You may read more about saveAsync() and save() methods here:

    https://demos.wijmo.com/5/Angular/WijmoHelp/WijmoHelp/topic/wijmo.grid.xlsx.FlexGridXlsxConverter.Class.html#save

    https://demos.wijmo.com/5/Angular/WijmoHelp/WijmoHelp/topic/wijmo.grid.xlsx.FlexGridXlsxConverter.Class.html#saveAsync

    ~Sharad

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels