Hyphenation in FastReport
Hi all,
is there any option for correct hyphenation in FastReport.NET? I am currently using v1.9.15 and specifically need hyphenation for column dimensions in matrix objects. Word wrapping is an option, but it does look kinda out-of-date, when it is just breaking at the last possible character.
And if hyphenation is not currently available in FastReport.NET, is it part of the releaseplan at some point?
Thanks,
Julian
is there any option for correct hyphenation in FastReport.NET? I am currently using v1.9.15 and specifically need hyphenation for column dimensions in matrix objects. Word wrapping is an option, but it does look kinda out-of-date, when it is just breaking at the last possible character.
And if hyphenation is not currently available in FastReport.NET, is it part of the releaseplan at some point?
Thanks,
Julian
This discussion has been closed.
Comments
I have the same problem.
So 7 years later still no answer.
I think the Support should have an eye on the forum.
Greets,
Marc
The current version has word wrap.
Word wrap means breaking between words. Hyphenation meas breaking inside words. I think that is what is meant here.
An example:
"Gesamtbruttogewicht" gets wrapped like this:
------------------------------
Gesamtbrutto-
gewicht
------------------------------
instead of
------------------------------
Gesamtbruttogewich
t
------------------------------
Greets,
Marc
Hello!
Before passing the text to the report, process it in C# (for example, using a .NET hyphenation library such as NHyphenator or Hyphenation) to insert the \u00AD character at valid syllable boundaries. Make sure that the WordWrap property of the TextObject is set to true.
If you only want to prevent long words from being clipped or leaving large gaps in narrow columns:
Auto-shrink text. Set AutoShrink to FontSize (or FontWidth) and configure AutoShrinkMinSize on the TextObject so that long words scale down to fit.
Grow height dynamically. Set WordWrap to true and CanGrow to true on both the TextObject and its parent Band so that wrapped text expands vertically.