How to bold a word

Posted by: npsimplea on 14 September 2017, 7:16 pm EST

  • Posted 14 September 2017, 7:16 pm EST

    [activereports_archive]I have an active report 10 section report (code based), I want to know if is possible to bold just a word of a text and how?

    Thanks![/activereports_archive]

  • Posted 14 September 2017, 7:16 pm EST

    [activereports_archive]Hi,

    Thanks for asking.

    This feature is available in RichTextBox control.

    To specify bold text programmatically use the following statement:

    richTextBox1.Html = “Bold text”;

    you also can append new lines of text using the following statement:

    richTextBox1.Html+= “normal text”;

    or paste rich text into this control manually.

    Check the following article on various ways of formatting html text:

    http://www.w3schools.com/html/html_formatting.asp

    Drop a line if I can do anything else for you.

    Regards

    Tim

    [/activereports_archive]

  • Posted 14 September 2017, 7:16 pm EST

    [activereports_archive]It worked, thanks![/activereports_archive]

  • Posted 14 September 2017, 7:16 pm EST

    [activereports_archive]Is it not possible to bold a word using a textbox?[/activereports_archive]

  • Posted 14 September 2017, 7:16 pm EST

    [activereports_archive]Hi Ivan,

    In a textbox control you can only bold out the whole text, since there is no support of html tags for formating like in richtextbox control.

    regards

    Tim[/activereports_archive]

  • Posted 17 April 2020, 12:35 am EST

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels