[Excel Package] Unable to cast object - AddSheet

Forge Component
(5)
Published on 2018-08-02 by Carlos Alfaro
5 votes
Published on 2018-08-02 by Carlos Alfaro

Hi,

I'm having trouble with the AddSheet Action. I'm sending the workbook that the WorkBook_Create action returns but the Addsheet throws me the following exception:

"Unable to cast object of type 'OfficeOpenXml.ExcelPackage' to type 'OfficeOpenXml.ExcelWorkbook'."

It seems that the object type returned by the create action is not the same that the AddSheet waits.

Lucas, are you still struggling with this issue?