public void SetFields()
        {
            byte[] binaryDocument = null;
            // LoadSettings must be adjusted to load the MS Word fields
            TXTextControl.LoadSettings ls = new LoadSettings();
            ls.ApplicationFieldFormat = ApplicationFieldFormat.MSWord;
            // save the document to the variable
            textControl1.Save(out binaryDocument, BinaryStreamType.InternalUnicodeFormat);
            // create a ServerTextControl instance to convert the checkboxes
            using( TXTextControl.ServerTextControl serverTextControl = new ServerTextControl() )
            {
                serverTextControl.Create();
            // load the document from the variable
                serverTextControl.Load(binaryDocument, TXTextControl.BinaryStreamType.InternalUnicodeFormat, ls);

            // loop through all fields to activate the checkbox fields
                foreach (TXTextControl.ApplicationField appfield in serverTextControl.ApplicationFields)
                {
                    if ((appfield.TypeName == "FORMCHECKBOX"))
                    {
                        // create a new adapter field
                        FormCheckBox ChkBoxField = new FormCheckBox(appfield);

                        // select the field to change the font name
                        serverTextControl.Select(ChkBoxField.Start - 1, ChkBoxField.Length);
                        serverTextControl.Selection.FontName = "Arial Unicode MS";

                        // set the text (state)
                        if (ChkBoxField.Checked == true)
                            ChkBoxField.Text = CHECKED;
                        else
                            ChkBoxField.Text = UNCHECKED;
                    }
                }
            // save the document back to the variable
                serverTextControl.Save(out binaryDocument, BinaryStreamType.InternalUnicodeFormat);
            // load the document back into the TextControl to show it to the user
                textControl1.Load(binaryDocument, BinaryStreamType.InternalUnicodeFormat, ls);
            }
        }