[Advanced Excel] Excel 2013

[Advanced Excel] Excel 2013

  
Forge Component
(26)
Published on 24 Jul (3 weeks ago) by Hanno Coetzee
26 votes
Published on 24 Jul (3 weeks ago) by Hanno Coetzee
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