RichText with canBreak and 'space after'

Stimulsoft Reports.NET discussion
Post Reply
ufessel
Posts: 14
Joined: Thu Jun 16, 2016 12:59 pm

RichText with canBreak and 'space after'

Post by ufessel »

Hello!

I'm having troubles using RichText with canBreak and 'space after' (\sa160).

Some times are lines left, per example bsp.pdf:
- Page 1 - Column 4 - line 'Zeile 5' left
- Page 1 - Column 5 - line 'Zeile1' left

without '\sa160' it works fine.
Attachments
bsp.pdf
(103.72 KiB) Downloaded 94 times
Sergio Museninni
Posts: 16
Joined: Wed Mar 17, 2021 6:04 pm

Re: RichText with canBreak and 'space after'

Post by Sergio Museninni »

Hello
We could not reproduce this. What product version and windows OS are you using? Please send us a report with test data on which we will reproduce the issue.
Thank you
ufessel
Posts: 14
Joined: Thu Jun 16, 2016 12:59 pm

Re: RichText with canBreak and 'space after'

Post by ufessel »

this file was attatched at the first post
Attachments
bsp2.mrt
(19.88 KiB) Downloaded 78 times
ufessel
Posts: 14
Joined: Thu Jun 16, 2016 12:59 pm

Re: RichText with canBreak and 'space after'

Post by ufessel »

<ReportVersion>2020.5.2.0</ReportVersion
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: RichText with canBreak and 'space after'

Post by Lech Kulikowski »

Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: RichText with canBreak and 'space after'

Post by Lech Kulikowski »

Hello,

We are using the standard NetFramework RichText component to show rich text. This component using a standard Windows library. And it has very limited functionality. Even for split text to parts, there is no built-in functionality, only hacks can do it.
And unfortunately, it is almost impossible to control these operations. So most of the time RichText is rendered "as is".

Also, each version of Windows has its own version of the system library, which may work slightly differently, differently calculating the height of the lines depending on the system scaling, fonts, etc.
For example, on Win7 lately, the library is often glitchy, giving less size than needed and cutting off the text on several lines at once.

A few builds ago we made a revision, which seems to have fixed the bugs with cropping, at least all the ones that we were able to reproduce.
On our test machines, your report works now without problems, so try the latest build.
If it does not help, it will most likely remain as is, or provide information about OS version, scaling, etc. and we will try to reproduce it.

Thank you.
ufessel
Posts: 14
Joined: Thu Jun 16, 2016 12:59 pm

Re: RichText with canBreak and 'space after'

Post by ufessel »

Hallo,

sorry, I send you the Report without the '/sa' RTF-Option.

please, have a look to these Report

Thanks
Uwe
Attachments
bsp.mrt
(19.94 KiB) Downloaded 75 times
Lech Kulikowski
Posts: 6196
Joined: Tue Mar 20, 2018 5:34 am

Re: RichText with canBreak and 'space after'

Post by Lech Kulikowski »

Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.
Post Reply