C1Excel underlining one word in a cell

Posted by: gharshman on 25 October 2017, 6:08 pm EST

    • Post Options:
    • Link

    Posted 25 October 2017, 6:08 pm EST

    I am familiar with creating styles and how to apply them to cells. Is it possible to underline a single word in a cell that contains multiple words?

    I have attached a screen shot of what I am trying to achieve below.

  • Posted 25 October 2017, 6:11 pm EST

    Not sure if attachment uploaded. Trying again.

  • Posted 26 October 2017, 4:27 am EST

    Hi,

    It is not possible to directly underline one word in a sentence contained in a single cell in C1Excel. However, below is a workaround that, you can try to achieve the same:

    1. Create a rtf document containing text with one underlined word.
    2. Save the rtf document.
    3. Open the rtf document in Notepad.
    4. Copy the entire text.
    5. Assign it to XLCell.Value property.

    Please refer to the attached sample application implementing the same.

    Regards,

    Esha

    prj_C1Excel.zip

Need extra support?

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

Learn More

Forum Channels