Don't read xls file

Posted by: d.sukhanov on 17 January 2021, 7:15 am EST

  • Posted 17 January 2021, 7:15 am EST

    add to maven dependency

    <dependency>
    <groupId>com.grapecity.documents</groupId>
    <artifactId>gcexcel</artifactId>
    <version>4.0.0</version>
    </dependency>

    write code

    String dataDir = new File(System.getProperty("user.dir")).toString() + File.separator;
    workbook.open(dataDir + FILE_NAME + ".xls");

    and give exeption after call method open

    Exception in thread "main" java.lang.IllegalArgumentException: java.lang.NullPointerException: entry
    at com.grapecity.documents.excel.n.c.z.a(Unknown Source)
    at com.grapecity.documents.excel.Workbook.a(Unknown Source)
    at com.grapecity.documents.excel.Workbook.open(Unknown Source)
    at com.grapecity.documents.excel.Workbook.open(Unknown Source)


    Can your library support xls files?
  • Replied 17 January 2021, 8:34 pm EST

    Hello,

    Unfortunately, GcExcel doesn't support opening xls files and currently GcExcel only supports: .csv, .xlsx, .xlsm.

    Thanks,
    Reeva
  • Replied 17 January 2021, 10:25 pm EST

    Will you plan to support in the nearest future?
  • Replied 17 January 2021, 11:40 pm EST

    Hello,

    Unfortunately, we don't have any plans for .xls support yet. However, we are still escalating your issue to our concerned team as an enhancement request.

    Tracking id for your issue is #DOCXLS-3627.

    We will update you as soon as we hear anything from them.

    Thanks,
    Reeva
  • Marked as Answer

    Replied 18 January 2021, 5:45 pm EST

    Hello,

    Our developers have confirmed that we don't have any plans in near future for .xls support.

    We regret the inconvenience.

    Thanks,
    Reeva
Need extra support?

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

Learn More

Forum Channels