Hi,
we're using Stimulsoft Reports version 2016.2.
The "Word Wrap" setting of text components doesn't seem to work properly in either the StiMvcMobileDesigner or the StiMvcViewer.
It doesn't matter if the component contains a fixed text or an expression. If the text doesn't contain spaces (for example), the component just grows horizontally completely ignoring the set width. It doesn't truncate the text either (which is what should happen by default according to the documentation), it just shows everything in one line ruining the report's layout.
I need a text component with a fixed width no matter how long the actual text in there is. If the text is too long, it should break and cause the component to grow vertically.
The Word Wrap setting seems to work in the StiMvcDesignerFx, but using Flash is not an option for us.
I've attached 3 screenshots to illustrate the problem.
The first screenshot shows the designer view with a fixed text component containing a long string.
The second screenshot shows the respective preview and that the text isn't wrapped (even though the setting is true).
The third screenshot shows how it should look.
Is there any solution to this problem?
Regards,
Chris
Word Wrap setting doesn't work
Word Wrap setting doesn't work
- Attachments
-
- Design view, Word Wrap enabled
- StiMvcMobileDesigner.png (84.14 KiB) Viewed 4834 times
-
- Actual preview result, text doesn't wrap
- StiMvcMobileDesigner-preview.png (11.97 KiB) Viewed 4834 times
-
- Expected preview result
- StiMvcDesignerFx-preview.png (6.73 KiB) Viewed 4834 times
Re: Word Wrap setting doesn't work
Hello.
This is an feature of the browsers.
They can't add word wrap if there is no space.
And the component grow in width to fit all the text.
As workaround, if the text is without spaces, you could set the UseStrictTableCellSize option in the Begin Render event of the report.
Please, look at the attached report template.
Thank you.
This is an feature of the browsers.
They can't add word wrap if there is no space.
And the component grow in width to fit all the text.
As workaround, if the text is without spaces, you could set the UseStrictTableCellSize option in the Begin Render event of the report.
Code: Select all
StiOptions.Export.Html.UseStrictTableCellSize = true;
Re: Word Wrap setting doesn't work
Hi,
thank you for the fast response.
I've tried the mrt file you provided, but it shows the same behavior (see screenshot). The text isn't wrapped. Could this be related to CalculationMode "Interpretation"?
The report viewer seems to create tables and word-break should work on TD tags.
Please review this small fiddle: https://jsfiddle.net/c7jmdmgm/
Thanks in advance.
Chris
thank you for the fast response.
I've tried the mrt file you provided, but it shows the same behavior (see screenshot). The text isn't wrapped. Could this be related to CalculationMode "Interpretation"?
What about the CSS property word-break?HighAley wrote: This is an feature of the browsers.
They can't add word wrap if there is no space.
The report viewer seems to create tables and word-break should work on TD tags.
Please review this small fiddle: https://jsfiddle.net/c7jmdmgm/
Thanks in advance.
Chris
- Attachments
-
- preview.png (8.65 KiB) Viewed 4817 times
Re: Word Wrap setting doesn't work
Hello.
Yes, if you set the Interpretation mode, the text will not be wrapped.
Your opinion is very important for us.
We will pass this information to our developers.
Thank you.
Yes, if you set the Interpretation mode, the text will not be wrapped.
Your opinion is very important for us.
We will pass this information to our developers.
Thank you.
Re: Word Wrap setting doesn't work
Hello.
We have made several improvements to the WordWrap property.
Please, check our latest build.
Thank you.
We have made several improvements to the WordWrap property.
Please, check our latest build.
Thank you.
Re: Word Wrap setting doesn't work
Hello.
Word Wrap doesn't work when the Print On All Pages of Column Footer Or Footer set to True
Please help.
Thank you.
Word Wrap doesn't work when the Print On All Pages of Column Footer Or Footer set to True
Please help.
Thank you.
-
- Posts: 6247
- Joined: Tue Mar 20, 2018 5:34 am
Re: Word Wrap setting doesn't work
Hello,
Thank you for the detailed information.
Thank you for the detailed information.