License Key is not applied when trying to import excel file via designer ribbon

Posted by: kacper.cierzniewski on 15 December 2020, 11:36 pm EST

  • Posted 15 December 2020, 11:36 pm EST

    Hi,

    I've noticed one bug regarding license keys. I've defined
    GCDesigner.Spread.Sheets.Designer.LicenseKey
    and
    GCSheets.Spread.Sheets.LicenseKey
    in my react component with Designer react component in it from '
    @grapecity/spread-sheets-designer-react'
    package. When I try to create a new instance of SpreadJS Designer it looks fine, there is no watermark.

    However, if I try to import an excel file via ribbon (File -> Excel File -> Import excel file) then I have an additional tab with license problems:



    I'm using react wrapper to handle spreadsheet instance. I've also tried to extract LicenceKey definitions outside the react component, but it didn't help.
  • Replied 15 December 2020, 11:38 pm EST

    I'm posting image once again, because first one is not cropped properly:
  • Replied 16 December 2020, 10:07 pm EST

    Hi,

    We are unable to replicate the issue at our end. Please make sure you add the license key for the excelIO module. Please refer to the following code snippet.
    Further, if the issue persists. Please share a small sample that replicates the issue so that we could investigate it further and assist you accordingly.


    import * as Excel from "@grapecity/spread-excelio"
    Excel.LicenseKey = "Your Spread license Key"


    Regards
    Avinash
  • Marked as Answer

    Replied 17 December 2020, 12:06 am EST

    Hi,

    Looks like adding Excel.LicenseKey fixed issue. Thanks!
Need extra support?

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

Learn More

Forum Channels