Page 1 of 1
HTML Text being cut off when using data columns
Posted: Thu Feb 09, 2023 9:55 am
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 (69.3 KiB) Viewed 22933 times
Produces this PDF:

- screenshot-pdf.png (31.36 KiB) Viewed 22933 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?
Re: HTML Text being cut off when using data columns
Posted: Thu Feb 09, 2023 11:25 pm
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.
Re: HTML Text being cut off when using data columns
Posted: Mon Feb 13, 2023 9:41 am
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.
Re: HTML Text being cut off when using data columns
Posted: Mon Feb 13, 2023 11:20 pm
by Lech Kulikowski
Hello,
We need some additional time to investigate the issue, we will let you know about the result.
Thank you.
#10252
Re: HTML Text being cut off when using data columns
Posted: Tue Feb 21, 2023 10:36 pm
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.