I am working on reading excel sheet using C#. Here, I get stuck when reading check box control from excel. We need to read whether a checkbox is checked or unchecked.
We are using office open xml to read the excel.
OfficeOpenXml.ExcelWorksheet worksheet=Package.workbook.worksheets["abc"];
var draw=worksheet.Drawings.SingleOrDefault(a=>a.name == "Check Box 45");
using draw.text I am getting checkbox text but I'm not able to read whether it is checked or unchecked.
Thanks,
Thanks, Ashish
ExcelControlCheckBox(or usedynamic). Then read theCheckedproperty.((ExcelControlCheckBox)draw)