For Designer do I need the import / export supporting libraries?

Posted by: georgeg on 8 April 2025, 1:45 pm EST

    • Post Options:
    • Link

    Posted 8 April 2025, 1:45 pm EST - Updated 8 April 2025, 1:50 pm EST

    Hi. Quick question…In the case I were to just include the SpreadJS and Designer component on a UI page:

    …If I have the SpreadJS stuff:

    gc.spread.sheets.all.x.x.x.min.js

    And the Designer files:

    • gc.spread.sheets.designer.resource.en.x.x.x.min.js

    • gc.spread.sheets.designer.all.x.x.x.min.js

    … do I really need these?:

    *gc.spread.sheets.io.x.x.x.min.js

    *gc.spread.excelio.x.x.x.min.js

    *FileSaver.min.js

    …to do importing and exporting of Excel files? Or is this baked into the designer.all code?

    My understanding is…, you could create an independent Import and Export feature w/o the Designer component, just the SpreadJS spreadsheet grid and then you would need these to emulate the import/export functionality baked into the Designer.

    I went ahead and tested this wrote some code to Export a file from the SpreadJS Designer…separate from the File tab on the Designer:

    … and when I commented out the FileSaver.min.js I got a Type Error message:



    That is I have code separate from the Designer code, for this control to Export the contents as an xlxs file.

  • Posted 9 April 2025, 2:37 am EST - Updated 9 April 2025, 2:42 am EST

    Hi George,

    Thank you for your detailed query.

    1. Regarding your first question, not all three of these files are strictly required, but here is a breakdown of when and why you would need them:

    1. Regarding your second point, the observed behavior is expected.

    When using the Designer’s built-in File menu (for import/export), Blob handling (for file generation and saving) is already managed internally — so FileSaver.min.js is not required.

    However, if you are manually implementing your own export functionality (outside of the Designer’s built-in UI), then you would need FileSaver.min.js to handle saving the generated Blob as a downloadable file — otherwise, you will encounter the error you mentioned.

    It is recommended that you use the SJSIO over ExcelIO as the new features will be available to the new SJSIO only.

    I hope this clarifies your questions. Please feel free to reach out if you need any further assistance.

    Best regards,

    Ankit

Need extra support?

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

Learn More

Forum Channels