Setting Rich Text Formatting Programmatically
Someone asked about setting the formatting for rich text programmatically, and if there was an object model for the text formatting. There isn't, but the text is simply HTML, so it isn't hard to do through code. Here's a trick to see how our text is formatted and to update the HTML manually:
- Copy/Paste the text box that has Rich Text
- Select the text box
- Change the Text Format property on the Data tab to Plain Text
- Select a different property to commit the property change and click OK to the warning
- Browse the form and edit the data in the Rich Text box
Now you can see the HTML we generate and modify it directly.