Insert Checkbox Problem

Hello Team,

I inserted Checkbox in Word by the following command.

builder.InsertCheckBox

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.

Thanks

Hi
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.
    Best regards,

Try like this

builder.Font.HighlightColor = Color.Transparent;
builder.InsertCheckBox("chk", false, 10);

Now checkbox must have white/transparent background.

Hi there,
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.
Thanks,