Posted 21 September 2022, 1:53 am EST
- Updated 15 February 2023, 1:33 am EST
Hello Brian!
>> I notice that the standalone designer does not seem allow you to highlight the text in a RichTextBox on a xml section-report and use the toolbar to change font, color etc
Highlighting HTML tag ‘mark’ text is not supported in Section Reports. If you want to highlight text I would suggest you to use the background-color property and style the text to show highlighted text.
Here’s a sample HTML:
<html><body><p>This is a test HTML Text with <span style="background-color:#FFFF00;">a HIGHLIGHTED text</span>.</p>
</body></html>
Here are all the HTML tags and attributes supported in the HTML Render of the RichTextBox:
The RichTextBox control does not support editing RTF/HTML format in the RichTextBox control using the Toolbar. If you want to change the text formatting please add it in the HTML/RTF code itself by using different tags and attributes.
For Example:
HTML Plain text:
<html><body><p>This is a sample text.</p></body></html>
Formatted output:
<html><body><p><span style="font-family:Arial,Helvetica,sans-serif">This is a <strong>sample</strong> <span style="color:#ff0000">text</span>.</span></p></body></html>
>> I also notice that regardless of Compatability setting, once I create with AR16 and put a RichTextBox and save, using AR12 gives “is not a valid report file”
Many changed have occurred in ActiveReports Section Reports since ActiveReports 12. Such as new properties like CompatibilityMode ActiveReports 12 does not handle changes that made in the later versions where as ActiveReports 16 does handle many of such changes to support previous versions. For example, we set the CompatibiltyMode to default when no compatibility mode is selected.
Please note we do not recommend moving between different versions of designers when designing reports as it can lead to unexpected behavior.
>> If I don’t click outside before entering my text it does not work. Clumsy but it works.
We have set it to double click to open edit mode because many of our customers don’t really edit the RichTextBox control at design-time manually. The popular use case is to either load a pre-designed file or set the formatted text at run-time using code.
An alternative method to open edit mode is to simply select the RichTextBox control and start typing. This will automatically show the control in edit mode.
Apologies for the inconvenience. We understand it can be a little infuriating when you are seasoned user of an older version of ActiveReports and have to see such changes. However please understand ActiveReports 12 is an legacy product and we have updated the product a lot since then.
Based on the above mentioned approached for highlighting text I have also created a sample report with highlighted text in html and attached it along with.
I hope this resolves your issue.
highlight.zip