I inserted Checkbox in Word by the following command.
Now i have Checkbox with Grey Background. I want to show a with white background for a check box.
Please advise me what I should do.
Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thanks you for your request. CheckBoxes are inserted as formfields and MS Word highlight all formfields with gray background. This is by default.
You can disable this option in MS Word.
1. Right click on MS Word toolbar and select from the context menu “Form”.
2. On this toolbar click “Form Field Shading”
This option is not stored in the document so you can not set it programmatically using Aspose.Words.
Try like this
builder.Font.HighlightColor = Color.Transparent;
builder.InsertCheckBox(“chk”, false, 10);
Now checkbox must have white/transparent background.
Thanks for your inquiry.
You can also turn off the shaded background of a form field by using the code below.
doc.ShadeFormData = false;
If you have any further queries, please feel free to ask.