0

I try this code, but FormControls not working!

var workbook = new ExcelFile();
var worksheet = workbook.Worksheets.Add("Sheet 1");
var checkBox = worksheet.FormControls.AddCheckBox("Simple check box", "B2", 100, 15, LengthUnit.Point);
checkBox.CellLink = worksheet.Cells["A2"];
checkBox.Checked = true;
  • What do you mean by "not working"? What do you get when you save that `ExcelFile`? I get exactly what you would expect, a checkbox in cell B2. – Mario Z Mar 13 '23 at 18:13

0 Answers0