Text component - word wrap problem

Stimulsoft Reports.WPF discussion
Post Reply
llysyganicz
Posts: 55
Joined: Thu Mar 12, 2015 10:06 am

Text component - word wrap problem

Post 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.
Attachments
Summary.zip
(28.77 KiB) Downloaded 220 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Text component - word wrap problem

Post 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.
llysyganicz
Posts: 55
Joined: Thu Mar 12, 2015 10:06 am

Re: Text component - word wrap problem

Post by llysyganicz »

If I use version 2015.2, it works as I expected.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Text component - word wrap problem

Post by Alex K. »

Hello,

We need some additional time to investigate the issue.

We will let you know about the result.
Thank you.
Post Reply