Exception when saving pre-existing Excel file containing Charts

0
Hello, we have pre-fabricated an Excel file with five charts inside. We open the file, change a few values, then try to save, and get the following exception: System.InvalidCastException: 'Das Objekt des Typs "ComponentPro.Excel.Shapes.ChartShape" kann nicht in Typ "ComponentPro.Excel.WorksheetBase" umgewandelt werden.' Please advise.
 
asked 5/29/2022 5:12:22 PM
add a comment

2 Answers

0
Hello Martin, I am not casting anything. I open a file, I change a numeric value in a cell, and I get this error on saving.
 
answered 6/22/2022 5:04:00 PM
add a comment
0
Hi, Your are casting object to wrong type . Please check API doc for [Excel][1] [1]: https://doc.componentpro.com/ComponentPro-Excel/ComponentPro-Excel-Charts~Classes
 
answered 5/30/2022 10:19:55 PM
add a comment

Your Answer

Not the answer you're looking for? Browse other questions tagged excel or ask your own question.