-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Radio Button #301
Comments
Thanks for your issue. The excelize library doesn't support change the radio button by set cell value currently, |
Thanks for your issue, and sorry for my late reply. I have initialized form control support for this library, please upgrade to the master branch code, and this feature will be released in the next version. Now we can delete the form control and add a checked radio button like this: if err := f.DeleteFormControl("Sheet1", "A1"); err != nil {
// ...
}
if err := f.AddFormControl("Sheet1", excelize.FormControl{
Cell: "A1",
Type: excelize.FormControlOptionButton,
Text: "Option Button",
Checked: true,
}); err != nil {
// ...
} |
- New exported function `DeleteFormControl` has been added - Update unit tests - Fix comments was missing after form control added - Update pull request templates
I am trying to change the radioButton state by using xlsx.setCellValue in his linked cell but it show always 0.
Code :
Result :
The radio Buttons already exist in the excel file. I need to update the state.
Thank you
The text was updated successfully, but these errors were encountered: