Page 1 of 1
Text component - word wrap problem
Posted: Tue Oct 25, 2016 2:11 pm
by llysyganicz
In text component for summary I have expression that calculate sum. Text of expression exceed size of control.
When I check word wrap option then text component is growing but its content does not need this.
For details about text component settings look at ReportBuilder.cs file (lines 257-267 and 359-380) in attached project.
Re: Text component - word wrap problem
Posted: Thu Oct 27, 2016 11:34 am
by Alex K.
Hello,
It is a feature of the engine.
Aggregate functions that are tied to the page, and system variables PageNumber, TotalPageCount, PageNofM, IsLastPage calculated not immediately, but only after the rendering of a full report, postprocessing.
And at the time of rendering the component in which they are used, the size of the component is calculated under the current contents.
Unfortunately, there is no simple solution.
As an option - use two passes, in the end of first save calculated values and on the second pass immediately assign them.
Thank you.
Re: Text component - word wrap problem
Posted: Mon Oct 31, 2016 9:49 am
by llysyganicz
If I use version 2015.2, it works as I expected.
Re: Text component - word wrap problem
Posted: Wed Nov 02, 2016 8:18 am
by Alex K.
Hello,
We need some additional time to investigate the issue.
We will let you know about the result.
Thank you.