Trailing spaces

Stimulsoft Reports.WEB discussion
Post Reply
Stéphane
Posts: 12
Joined: Fri Jun 30, 2017 11:32 am

Trailing spaces

Post by Stéphane »

I have one trailing space in the Text property of a StiText. When the report is rendered, this trailing space is removed. I tried to set the option StiOptions.Engine.MeasureTrailingSpaces to true, but it doesn't change anything (I use the latest version).
If I put two trailing spaces, then, the two spaces are well rendered, it's very strange.

How do I keep trailing spaces always displayed ?
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: Trailing spaces

Post by Lech Kulikowski »

Hello,

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.
Stéphane
Posts: 12
Joined: Fri Jun 30, 2017 11:32 am

Re: Trailing spaces

Post by Stéphane »

There is no need to have data. In the report in attachment, I only put a StiText with the text "There should be a space after the colon : ". This trailing space is never rendered.
Attachments
Report.mrt
(9.26 KiB) Downloaded 102 times
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: Trailing spaces

Post by Lech Kulikowski »

Hello,

That option StiOptions.Engine.MeasureTrailingSpaces is supported only in the .net version.

In the web version, is available StiOptions.Export.Html.PreserveWhiteSpaces option (true by default) and it is working only with 2 or more spaces in the end of the string due to the web browser specifics of rendering.

Thank you.
Post Reply