HTML Text being cut off when using data columns

Stimulsoft Reports.WEB discussion
Post Reply
johan.gorter
Posts: 9
Joined: Thu Oct 17, 2019 6:41 am

HTML Text being cut off when using data columns

Post by johan.gorter »

We have a situation where text is being cut off for no apparent reason. The use of Bold in HTML in a data column seems to be the problem.

This MRT:
screenshot-mrt.png
screenshot-mrt.png (69.3 KiB) Viewed 21767 times
Produces this PDF:
screenshot-pdf.png
screenshot-pdf.png (31.36 KiB) Viewed 21767 times
Where some of the text "koptekst." is missing

The MRT used is attached. I used the online version at designer.stimulsoft.com

Can you please look into this problem?
Attachments
Problem_Html_text_truncated (1).mrt
(167.4 KiB) Downloaded 103 times
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: HTML Text being cut off when using data columns

Post by Lech Kulikowski »

Hello,

Please provide more detailed information on how do you export to pdf?
Could you prepare and send us a sample project that reproduces the issue for analysis?

Thank you.
johan.gorter
Posts: 9
Joined: Thu Oct 17, 2019 6:41 am

Re: HTML Text being cut off when using data columns

Post by johan.gorter »

The sample (mrt file) was already added as an attachment. To reproduce the problem, simply go to designer.stimulsoft.com, file --> open, select the mrt. Now open the preview tab and the problem is immediately visible.
Lech Kulikowski
Posts: 6247
Joined: Tue Mar 20, 2018 5:34 am

Re: HTML Text being cut off when using data columns

Post by Lech Kulikowski »

Hello,

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

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

Re: HTML Text being cut off when using data columns

Post by Lech Kulikowski »

Hello,

The main cause of the problem is that AutoWidth (and WordWrap) is enabled in the text boxes.
In this case, the width is adjusted to the text, but the width is calculated for GDI+.
In the browser, it is always displayed differently, and the text may not fit and is moved to the next line.
We can never guarantee that the text in the browser will be displayed as it is calculated in Net.
because this depends on many factors - system, fonts, browser, system scaling, etc.
That's why it's best not to use AutoWidth in the Web. If you need AutoWidth - then turn off WordWrap.

Thank you.
Post Reply