gmaxey
01-25-2013, 01:13 PM
After sitting here surrounded by clumps of hair and bits of bloody scalp, I've thrown in the towel :dunno
I have a template add-in that you can download here:
https://dl.dropbox.com/u/64545773/Test%20TO.dotm (https://dl.dropbox.com/u/64545773/Test%20TO.dotm)
After opening this template, insert and test the Checked Box and Active Button objects. Both work as expected.
Now close the template, restart Word and load the template as an add-in.
After the template loads, insert and test the Checked Box and Active Button objects in a new document. Note that(for me at least), the Checked Box works fine, but the Active Button object displays the wrong characters after the initial toggle!!
The problem is that for some reason, I am unable to apply the “wingdings” font to the symbol programmatically.
After the procedure runs, I can select the field and apply “Wingdings” font with the UI and the correct symbol displays or I can toggle the field code and apply the wingding font with the UI only to the symbol and after toggling the field code again, the correct symbol displays.
The only fix I’ve found, is to abandon what seems to work perfectly well with the template open and what works perfectly well with the Checked Box in either case and insert a building block of the correct symbol. You can apply the fix by closing and restarting Word, opening the template and unstetting the following lines:
oAutoTextButtonOff.Insert Where:=Selection.Range, _ RichText:=True ' and
oAutoTextButtonOn.Insert Where:=Selection.Range,RichText:=True
… then deleting the msgbox code lines.
Close, restart Word, and reload the template.
I've done everything that I can think of but nothing I do will apply the wingding font to the symbol programatically the way it works when the template is opened as a file and with the Checked and Unchecked box symbols. I would be interested in an explanation of this weird behavior.
Thanks!!
I have a template add-in that you can download here:
https://dl.dropbox.com/u/64545773/Test%20TO.dotm (https://dl.dropbox.com/u/64545773/Test%20TO.dotm)
After opening this template, insert and test the Checked Box and Active Button objects. Both work as expected.
Now close the template, restart Word and load the template as an add-in.
After the template loads, insert and test the Checked Box and Active Button objects in a new document. Note that(for me at least), the Checked Box works fine, but the Active Button object displays the wrong characters after the initial toggle!!
The problem is that for some reason, I am unable to apply the “wingdings” font to the symbol programmatically.
After the procedure runs, I can select the field and apply “Wingdings” font with the UI and the correct symbol displays or I can toggle the field code and apply the wingding font with the UI only to the symbol and after toggling the field code again, the correct symbol displays.
The only fix I’ve found, is to abandon what seems to work perfectly well with the template open and what works perfectly well with the Checked Box in either case and insert a building block of the correct symbol. You can apply the fix by closing and restarting Word, opening the template and unstetting the following lines:
oAutoTextButtonOff.Insert Where:=Selection.Range, _ RichText:=True ' and
oAutoTextButtonOn.Insert Where:=Selection.Range,RichText:=True
… then deleting the msgbox code lines.
Close, restart Word, and reload the template.
I've done everything that I can think of but nothing I do will apply the wingding font to the symbol programatically the way it works when the template is opened as a file and with the Checked and Unchecked box symbols. I would be interested in an explanation of this weird behavior.
Thanks!!