I am showing address in a multiline textbox. you can see in the screenshot that in order to align telephone number and fax number some blank spaces are used. In the HTML Preview of the report document this spaces are neglected , when exported to pdf no problem with space . I assume this is because the html's rendering nature as sequence of blank space characters are treated as single space. Can you suggest me a work around.
9 Answers, 1 is accepted
You're correct, this behavior is due to the fact that HTML treats multiple spaces as single space. You can either use several textboxes (one for label and another for phone/fax) or create a user function to replace the spaces with the Unicode representation of   i.e.
value.Replace(" ", "\u00A0")
that should be respected.
Greetings,
Steve
the Telerik team
Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

As my colleague explained, you should create a custom user-function that will replace the spaces with the unicode character. If you have a textbox and you have textbox.Value = "= Fields.Telephone". Instead you create a user function, named for example ReplaceSpaces().
Then set the following value to the TextBox Value "= ReplaceSpaces(Fields.Telephone)"
and the function itself is something like this:
public
string
ReplaceSpaces(
string
text)
{
return
text.Replace(
" "
,
"\u00A0"
);
}
Elian
the Telerik team
Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!




Hello,
I created a report in telerik report designer R3 2016, and I am facing problem to show spaces or a tab before text in expression of text box.please guide me.

Hello,
I created report in telerik report designer R3 2016 and here i am facing problem to show spaces before text in expression of text box on report browser run time. please guid me.
Check an update in Facing problem to give space in text box expression forum thread - this forum post suggests an approach you can use.
Regards,
Katia
Telerik by Progress