Prevent line break for certain characters (whitespace, hyphen, colon)

1 Answer 10 Views
Report Designer (standalone) Report Viewer - MVC
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Stefan asked on 30 Jul 2025, 12:17 PM

We have a longer text in our report, which also contains this string "ISO 5834-1:2019", which we don't want to break into a new line.

Reporting Services seem to have the possibility to use the chr()-function to inject 'unbreakable' characters, but this doesn't seem to work in Telerik Reports.

How can we make sure, that there is no line break possible for the given string? 
(Line break in the rest of the text is ok, though.)

1 Answer, 1 is accepted

Sort by
1
Accepted
Petar
Telerik team
answered on 04 Aug 2025, 09:06 AM

Hi Stefan,

If I understand correctly, you want to ensure that the string "ISO 5834-1:2019" does not split across two lines, for example, with "ISO" appearing on one line and "5834-1:2019" on the next due to the space. To achieve this, I recommend using an HtmlTextBox item for the text, as it supports HTML entities like ` `, which represents a non-breaking space, and `‑`, which represents a non-breaking hyphen:

ISO 5834‑1:2019

For your reference, I am also attaching a muted screen recording that showcases this behavior. Could you please take a look at it and let me know if such a solution works for you?

    Regards,
    Petar
    Progress Telerik

    Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

    Stefan
    Top achievements
    Rank 2
    Iron
    Iron
    Iron
    commented on 05 Aug 2025, 06:33 AM

    Hi Petar,

    thank you, that's working nicely. :)

     

    Kind regards.

    Tags
    Report Designer (standalone) Report Viewer - MVC
    Asked by
    Stefan
    Top achievements
    Rank 2
    Iron
    Iron
    Iron
    Answers by
    Petar
    Telerik team
    Share this question
    or