How get get formula values when rea

Hi,

I am trying to read an XLSX which had a number of computed fields. (File is attached)
Basically I going through the following steps:
  • options =: ComputedFormulaValues + DetectColumnTypes
  • range = XL.UsedRange
  • XL.Excel.ActiveWorkbook.ActiveSheet.ExportDataTable(range options)

But unfortunately values of formulas are not showing when I then inspect the data: the booleans are all 0 (as is the age-calculation in column F) and the values of the computed birthday in G are just a repetition of the data in B. I was expecting the ComputedFormulaValues-option would ensure I'd get the resulte. How does one read this table  correctly?


Attachment: footable_6e7da9fd.zip

1 Reply

AV Abirami Varadharajan Syncfusion Team February 27, 2018 03:26 PM UTC

Hi Michael, 

Thank you for contacting Syncfusion support. 

Please refer the below sample which updates the calculated value in the exported datatable.  

 
Also please refer below API to know more about ExcelExportDataTableOptions Enumeration. 
 

Kindly refer and get back to us if you face any issue with this. 

Regards, 
Abirami. 


Loader.
Up arrow icon