[.NET Core] Incorrect text height calculation with StiText inside DataBand (WordWrap / CanGrow, PDF & Print)

Stimulsoft Reports.NET discussion
Post Reply
ncphuoc
Posts: 1
Joined: Mon Feb 17, 2025 4:40 am

[.NET Core] Incorrect text height calculation with StiText inside DataBand (WordWrap / CanGrow, PDF & Print)

Post by ncphuoc »

Hello Stimulsoft Team,
I would like to report an issue related to text height calculation when using StiText inside DataBand in Stimulsoft .NET Core / .NET 6+.
This issue does not occur in .NET Framework with the same report definition.

🔹 Environment
Platform: .NET Core / .NET 6+

Stimulsoft version: 25.1.4
Export type: PDF / Print

OS: Windows, Linux, Docker

Components:
StiDataBand
StiText

Text properties:
- WordWrap = true
- CanGrow = true
- GrowToHeight = true

🔹 Problem description
When rendering multi-line text inside a DataBand, the calculated height of StiText is sometimes smaller than the actual rendered text height.

🔹 Question

Is this a known issue in Stimulsoft .NET Core?
Is there any recommended workaround for accurate text height calculation?
Are there any plans to improve text measurement for StiText inside DataBand in .NET Core (especially for PDF / Print)?
Thank you for your support.
Attachments
Normal
Normal
Screenshot 2026-01-11 at 00.07.37.png (222.08 KiB) Viewed 48 times
Issue ocur
Issue ocur
Screenshot 2026-01-11 at 00.12.16.png (140.21 KiB) Viewed 48 times
Lech Kulikowski
Posts: 7589
Joined: Tue Mar 20, 2018 5:34 am

Re: [.NET Core] Incorrect text height calculation with StiText inside DataBand (WordWrap / CanGrow, PDF & Print)

Post by Lech Kulikowski »

Hello,

Please send us a sample report with test data that reproduces the issue for analysis on support@stimulsoft.com

Thank you.
Post Reply