[Advanced Excel] Excel 2013

[Advanced Excel] Excel 2013

  
Forge Component
(21)
Published on 5 Nov by João Rosado
21 votes
Published on 5 Nov by João Rosado
Hi,
I'm trying to get a worksheet from an excel from Excel 2013 with the action Worksheet_SelectByIndex and it returns the following error:
Unable to cast object of type 'System.Byte[]' to type 'OfficeOpenXml.ExcelPackage'.
I tried with an excel 2010 file and the error is the same. I use the builtin ToObject() to convert the binary data from the excel to Object.
What can be wrong?
Thanks