Code:
Dll Name : Aspose.Words.dll
Version : 15.3.00
Create a document with checkbox control.
Using the following code:
Dim license As Aspose.Words.License = New Aspose.Words.License
license.SetLicense("Aspose.Words.lic")
Dim fName As String
fName = HttpContext.Current.Server.MapPath("") & "\Temp\Test.DOC"
Dim doc As Aspose.Words.Document = New Aspose.Words.Document(fName)
Dim builder As Aspose.Words.DocumentBuilder = New Aspose.Words.DocumentBuilder(doc)
builder.Font.Color = Drawing.Color.Black
builder.Write("Create Checkbox control True: ")
builder.InsertCheckBox("ChkName", True, 10)
builder.Write("Create Checkbox control False: ")
builder.InsertCheckBox("ChkFalse", False, 10)
doc.Save(fName)
Document has been created like the below screenshot
gravatar.png726×574 219 KB
When double click on the first checkbox, It shows the default value ‘Not Checked’ eventhough it is checked,
gravatar.png756×766 244 KB