Cells with external references

Posted by: djmelan on 11 July 2018, 4:04 am EST

  • Posted 11 July 2018, 4:04 am EST

    Excel formulas can contain references to cells in other workbooks, such
    . If the referenced file is not present, or if external reference updates are disabled, Excel displays the formula's most recently calculated value. You can even move the spreadsheet to another machine and it will retain the cached value. Does Documents for Excel provide any way in to retrieve this cached value? When I call something like
    on a cell with an external reference, I get always get either zero or 4 (no idea why it returns 4, the actual value is nothing like 4). I can understand why Documents for Excel doesn't support dynamic update of cells with external references, but it seems like it should be able to provide the cell's cached value. Is this possible?
  • Replied 11 July 2018, 9:54 pm EST


    We could observe the cell value retaining the referenced value in a sheet properly.
    We referred a cell's value from the first sheet to a cell in the second sheet, deleted the first sheet and saved the workbook.
    The second sheet retains the value even when the first sheet is deleted and also when it is moved on to another machine.
    We have attached the sample we used to check the scenario with the Grapecity.Documents.Excel package version.

    Let us know if we are missing on something in the sample. Also, you can modify the same and share it back so that we can assist you further in the correct manner.

  • Replied 19 July 2018, 5:22 am EST

    Here is an example project that demonstrates the problem. Start by opening the included Excel file in Excel. Note that cell A1 displays the value 5. Next, run the attached project. Note that the value of cell A1 reported by GcExcel is 0, not 5.GcExcel_ExternalReference_Revised.zip
  • Replied 19 July 2018, 6:29 pm EST


    Thanks for sharing the modified sample.
    We are discussing this with the development team [Internal Tracking ID: 334749] and will get back to you once it is done.

    Best Regards,
  • Marked as Answer

    Replied 18 September 2018, 3:23 pm EST


    The issue has been resolved with the latest package (https://www.nuget.org/packages/GrapeCity.Documents.Excel/).
    Kindly check with the same at your end and let me know if you need any further assistance.
    Release notes: http://help.grapecity.com/gcdocs/gcexcel/readme/webframe.html#rnotes1.5.0.4.html

    Best Regards,
Need extra support?

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

Learn More

Forum Channels