I'm trying unsuccessfully to change the value of a word Checkbox (from developer tab) via automation in C#. I've tried different ways but the only one I always find when I search on internet is :
find the name of the checkbox by clicking on properties of the checkbox when you are in developer mode
object oCheckbox = "Checkbox_name"
document_name.FormFields.get_Item(ref oCheckbox).CheckBox.Value = true/false;
But whenever I execute the code I get the following error (the request member of the collection does not exist) who means that there's no checkbox named "Checkbox_name" in my document if I understand correctly.
I also tried to Bookmark the checkbox with the same name and to execute :
document_name.BookMarks.get_Item(ref oCheckbox).CheckBox.Value
but it doesn't work too...