the problem occurs when I have my functions embedded in a XLA file attached as an add-in to my XLS file.
The ImportExcelFile function will not return the function.
I tried to load a XLS file with Aspose.Cells using the following code:
Dim EXCEL As New Workbook
EXCEL.Open(myfile.InputStream)
Dim cll As Cell
Dim wb As Worksheet
Me.GridWeb1.WebWorksheets.Clear()
For Each wb In EXCEL.Worksheets
Me.GridWeb1.WebWorksheets.Add(wb.Name)
For Each cll In wb.Cells
If cll.IsFormula Then
Me.GridWeb1.WebWorksheets(wb.Index).Cells(cll.Row,cll.Column).Formula = cll.Formula
Else
Me.GridWeb1.WebWorksheets(wb.Index).Cells(cll.Row,cll.Column).PutValue(cll.Value)
End If
Next
Next
The cell.IsFormula is triggered but cell.Formula does not have a value